Test mouse cursor movement and button events with our free Mouse Tracker. Trace real-time X/Y pixel coordinates relative to target bounds, audit left/right click responses, and verify scroll wheel direction — 100% offline with zero telemetry.
Hover over the designated target box to see real-time X/Y pixel coordinate updates.
Click the Left Click and Right Click boxes to verify mouse button registration.
Scroll over the Scroll Wheel box to confirm scroll direction (up/down deltaY).
Uses getBoundingClientRect() to calculate exact cursor offsets relative to the target container bounds rather than whole screen pixels.
Captures left (button 0) and right (button 2) clicks while preventing browser default context menu popups during testing.
Pointer events are handled strictly in local browser DOM memory — no movement tracking scripts or server analytics.
Browser mouse tracking measures cursor position using three coordinate systems: screenX/screenY (physical screen pixels), clientX/clientY (viewport pixels), and container-relative offsets calculated via e.clientX - rect.left.
Mouse button detection relies on MouseEvent.button values: 0 represents primary (left click), 1 represents auxiliary (middle/scroll wheel click), and 2 represents secondary (right click).
Scroll wheel events trigger WheelEvent callbacks, where deltaY > 0 indicates downward scrolling and deltaY < 0 indicates upward scrolling. Suppressing context menus via e.preventDefault() allows unobstructed right-click testing.