Repository navigation
fix(stream/input): lock the pointer with the OS pointer's travel - #85
Merged
Merged
Conversation
A raw pointer lock drops the client OS's pointer speed and acceleration. On a Mac the same hand travel then moves the host pointer a fraction as far, and the page has no control that makes it up: a captured mouse has crawled for some players since 0.3.3. The lock is plain again, as it was up to 0.3.2. The engine's `rawMouse` keeps the mouse's own counts for a page that asks.
enricobuehler
marked this pull request as ready for review
November 19, 2026 15:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Capture mode locks the pointer plainly again, as it did up to 0.3.2. Raw counts stay in the engine behind
rawMouse, off by default.Problem
Since 0.3.3 the page asks for
unadjustedMovement, which drops the client OS's pointer speed and acceleration. A player on a Mac with Chrome reports a captured mouse too slow to click with, on Linux and Windows hosts, and still on 0.5.0.Change
InputPipe.lock()asks for a plain lock unlessrawMouseis set. With it, the old path:unadjustedMovement, and a plain lock onNotSupportedError.TunableOptions.rawMouse(defaultfalse) reaches the pipe throughconfigure, likeinvertScroll.Not in this PR
A settings row. The label is a message in the monorepo and a player setting needs the maintainer's yes, so the web app has no switch for
rawMouseyet.Toward a Windows host with Enhance pointer precision on, a plain lock stacks two accelerations, as it did up to 0.3.2.
Checks
npm run checkandnpm testfor@punktfunk/stream(140 pass) andpunktfunk-web(19 pass), Node 24.