Repository navigation
fix: let a mouse or pen jog a joint slider a pixel off the joint - #655
Merged
Merged
Conversation
The joint slider's dead zone was 4 px for every pointer. On a joint with a wide range that is a lot: RobotPad's UR5e joints span ±360° on a 272 px track, so a press closer than 10.6° to the joint did nothing. The dead zone keeps a pointer's jitter from jogging the joint. A mouse or pen keeps still, so its dead zone is now 1 px. A finger keeps the 4 px: it trembles by a few pixels, and lands less precisely than that anyway.
temmuz
force-pushed
the
fix/joint-slider-dead-zone
branch
from
November 19, 2026 14:17
6f2e6a2 to
afdb05c
Compare
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.
Lets a mouse or pen jog a joint with the
JoggingJointSliderfrom a press a pixel off the joint, so that small jogs work on joints with a wide range.The dead zone was 4 px for every pointer. RobotPad's UR5e joints span ±360° on a 272 px track (2.6° per px), so a press closer than 10.6° to the joint did nothing: the slider showed the goal, but the press jogged nothing.
Stacked on #654, which changes the same lines of the slider. Once #654 is merged, this goes on top of
revamp.Checked
Unit tests: a mouse or pen press 2 px off jogs, a press on the joint's own pixel does not, and a finger's press and jitter near the joint do not. Breaking each rule on purpose fails a test.
Playground on a NOVA instance (mock UR5e, ±360°):