Code examples that accompany various MDN DOM and Web API documentation pages
-
Updated
Nov 6, 2026 - JavaScript
Code examples that accompany various MDN DOM and Web API documentation pages
👇💥 JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.
A library for panning and zooming elements using CSS transforms 🔍
1Kb library for easy unified handling of user interactions such as mouse, touch and pointer events.
Detect if a device is mouseOnly, touchOnly, or hybrid, and if the primary input is mouse or touch.
Fast and simple interaction manager for three.js for enabling mouse and touch events on 3D objects
Everything you (n)ever wanted to know about touch and pointer events
A library for normalized events and gesture for desktop and mobile.
A Level 2 spec-compliant Pointer Events polyfill with first-class Shadow DOM support
Fast and efficient TypeScript keyboard, mouse and pointer management
An easy way to handle touch gestures in your Elm application
Cursed Pixels: a small drawing app in the browser. Brush, colours, eraser, save as PNG, and drop in a picture to draw on. Works with mouse, pen and touch.
💻 NodeJS Desktop Remote using W3C Pointer Lock & Events
Swipeable rows for React on the web: reveal buttons like iOS Mail, full-swipe to delete, archive or mark as read like Telegram and Gmail, or both in one row. Threshold you can feel, undo bar, keyboard and screen-reader support. Pointer Events, zero dependencies, ~5 kB.
Secure PHP + MySQL Kanban task board with vanilla JavaScript drag & drop, Pointer Events, AJAX, PDO and CSRF protection. Zero dependencies, touch and keyboard support, persistent task ordering and CRUD operations.
Local-first 3D digital business card maker with double-sided design, safe layout, interactive reflection, and offline export.
浮光球 · A fluid, accessible floating shortcut orb for Vue 3.
Click anywhere to record precise x/y coordinates relative to a box, in pixels, percent or 0–1 fractions. Single-file browser tool that runs locally.
Zero-dependency pointer-following mascots with layered DOM and a reproducible 240-frame directional sprite.
To associate your repository with the pointer-events topic, visit your repo's landing page and select "manage topics."