Pointer Jump Fixt
Fix sudden pointer and camera jumps in Web 3D games.
Overview
Pointer Jump Fixt patches the Pointer Lock API used by Web 3D games to prevent sudden camera and crosshair jumps. It requests raw mouse movement where supported, filters implausible movement spikes, and adds a short recovery window after pointer lock or focus changes. Use the zero-install npx CLI to patch local HTML files, or load the userscript in a browser extension manager.
Raw pointer input
Requests unaccelerated pointer-lock movement where the browser supports it.
Spike filtering
Rejects huge movement spikes from high-polling mice while keeping normal flicks responsive.
Recovery window
Suppresses unstable deltas after pointer lock, tab focus, or visibility changes.
CLI and userscript
Patch local HTML files with npx, or load the userscript or direct script include in a browser.
Install
The CLI requires Node.js 18 or newer. The browser extension is not published yet, so use the included userscript or direct script include for now.
FAQ
It fixes sudden camera or crosshair jumps in Web 3D games that use the Pointer Lock API, including Eaglercraft, krunker, and three.js FPS demos.
It creates a .orig backup before patching targeted HTML files. Run npx -y pjfix --unpatch to restore the originals.
No. The zero-install npx CLI, userscript, and direct script include are available. The Chrome extension is not published yet.
No. It only changes pages where you install or inject it, and it has no effect on games or pages that do not use Pointer Lock.