Skip to content

fix: use maxDragDistance instead of release distance to prevent releasing close to origin entering sticky-mode#42

Closed
blakkd wants to merge 1 commit into
ubermanu:mainfrom
blakkd:fix-release-near-origin
Closed

fix: use maxDragDistance instead of release distance to prevent releasing close to origin entering sticky-mode#42
blakkd wants to merge 1 commit into
ubermanu:mainfrom
blakkd:fix-release-near-origin

Conversation

@blakkd

@blakkd blakkd commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

handleMouseUp only checked release position against press origin. Now uses maxDragDistance which tracks the furthest distance traveled during the middle-click/ctrl-click holding, so returning to origin before releasing is correctly recognized as a hold-scroll instead of a tap-scroll.

…far-drag returning to origin entering sticky mode

Before: handleMouseUp checked distance from press origin to release position,
so releasing near origin after dragging far was treated as a click (sticky
scroll continued).

After: maxDragDistance tracks the furthest distance traveled from origin
during the session. Release now stops scroll if the cursor ever moves
beyond dragThreshold, regardless of where it is released.
@changeset-bot

changeset-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0ef60c3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@blakkd blakkd closed this Jul 1, 2026
@blakkd blakkd deleted the fix-release-near-origin branch July 1, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant