In JavaScript, the pointerrawupdate event fires when a pointer changes properties that do not produce pointerdown / pointerup (same kind of changes as pointermove) (MDN). Browsers may deliver it more often than pointermove for lower-latency input (drawing, drag that would lag).
Register a listener with addEventListener. Check readiness and browser support before you rely on this event.
Syntax
Listen for pointerrawupdate. Start with this line.
JavaScript
el.addEventListener("pointerrawupdate", fn)
Call
What it does
el.addEventListener("pointerrawupdate", fn)
Primary signature.
Built into the browser. Listen with el.addEventListener("pointerrawupdate", …) — no import required.
Library declarations
JavaScript
el.addEventListener("pointerrawupdate", fn)
Parameters
Parameter
Description
Feature detect
Required. Limited availability + HTTPS
PointerEvent
Required. Coords / type / coalesced samples
Return Value
Return Value
Description
*
Fires as an Element event (listener receives the Event object).
JavaScript Examples
Example 1 — Feature Detect
Check support before building a raw-update path.
JavaScript
const supported = "onpointerrawupdate" in window;
console.log(supported);
if (!supported) {
console.log("Use pointermove instead");
}
Listen for raw updates. Only useful in supporting secure contexts.
Call getCoalescedEvents(). May return earlier samples for this dispatch (MDN).
Branch on length. Multiple samples → process each lightly.
Guard the API. Not every engine exposes coalesced helpers the same way.
Compatibility
Browser Support
pointerrawupdate is marked Limited availability on MDN (not Baseline). It also requires a secure context (HTTPS) in supporting browsers. Prefer pointermove unless you need high-frequency low-latency updates.
✓ Limited availability
Element pointerrawupdate
Higher-frequency PointerEvent updates — not Baseline; HTTPS in supporting engines.
PartialNot Baseline
Google ChromeSupported (secure context)
Supported
Mozilla FirefoxSupported (secure context)
Supported
Apple SafariNot available (typical)
Unavailable
Microsoft EdgeSupported (Chromium)
Supported
OperaChromium-based paths
Partial
Internet ExplorerNot available
Unavailable
pointerrawupdateLimited
Bottom line: Feature-detect and fall back to pointermove. Use raw updates only for drawing/drag latency when the handler can keep up.
Frequently Asked Questions
It fires when a pointer changes properties that do not fire pointerdown or pointerup (the same kind of changes that drive pointermove). MDN: it is for lower-latency handling than pointermove, such as drawing that would otherwise lag.
No. MDN does not mark it Deprecated, Experimental, or Non-standard. It has Limited availability (not Baseline) and requires a secure context (HTTPS) in supporting browsers.
No. MDN: a single event carries the same property values either way — pointerrawupdate is not more precise in space or time than the pointermove covering the same movement; it just arrives more often.
Usually no. MDN recommends other pointer event types for most use cases. Prefer pointermove unless you truly need higher-frequency, low-latency updates and can keep up.
If another pointerrawupdate for the same pointerId is still waiting in the event loop, the dispatched event may expose earlier samples via event.getCoalescedEvents() (MDN).
MDN: it bubbles and is composed, but is not cancelable and has no default action.