Favorites

HTML onpointerrawupdate Event Attribute

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
onpointerrawupdate
HTML Event AttributeThis event attribute is supported in some modern browsers, but not all.
Updated 22nd November 2026

Description

The onpointerrawupdate event attribute runs a script when a pointer changes properties that do not fire pointerdown or pointerup, as soon as the input arrives, without waiting for the next animation frame. It is meant for apps that need the lowest possible latency, such as drawing and games.

Unlike pointermove, browsers do not align these events to frames, so they can fire many times per frame. Heavy handlers can hurt performance; in most cases pointermove with getCoalescedEvents() is the better choice. It is only available in secure contexts (HTTPS) and is not supported in Safari.

Pointer events are a single set of events for all pointing devices: mouse, pen and touch. The event object is a PointerEvent, which extends MouseEvent with properties such as pointerId, pointerType ("mouse", "pen" or "touch"), pressure, width and height. For touch input, the CSS touch-action property controls whether the browser scrolls or zooms the page instead of sending pointer events.

Syntax

<element onpointerrawupdate="script">

Values

  • scriptThe name of the script to use when the event has been triggered.

Example

<!DOCTYPE html>
<html>
<head>
<title>onpointerrawupdate event</title>
<style>
#pad {
height: 120px;
padding: 10px;
background: #dde3ff;
touch-action: none;
}
</style>
</head>
<body>
<div id="pad" onpointerrawupdate="count++; document.getElementById('pad').textContent = count + ' raw updates'">Use a mouse, pen or finger here</div>
<ul id="log"></ul>
<script>
var count = 0;
</script>
</body>
</html>
Open in editor

Browser Support

The following information will show you the current browser support for the HTML onpointerrawupdate event attribute. Hover over a browser icon to see the version that first introduced support for this HTML event attribute.

This event attribute is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee