fix: Reduce drag scroll speed to prevent overshooting columns (#1110) - #1179
Open
BradGroux wants to merge 1 commit into
Open
fix: Reduce drag scroll speed to prevent overshooting columns (#1110)#1179BradGroux wants to merge 1 commit into
BradGroux wants to merge 1 commit into
Conversation
…n-community#1110) The scrollStrengthModifier was set to 8, causing scroll speeds of up to 480px/sec at 60fps when dragging cards near the edge of the board. This made it nearly impossible to drop cards into adjacent columns on boards with many lists, as the view would scroll too far too fast. Reduced from 8 to 2.5, which gives a max scroll speed of ~150px/sec at the edge — fast enough to traverse large boards but controllable enough to accurately drop cards. Fixes obsidian-community#1110
25 tasks
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.
Problem
When dragging cards across a Kanban board with many columns, the horizontal scroll speed is far too fast, making it nearly impossible to drop cards into adjacent columns. The board scrolls all the way to the end instead of allowing precise placement.
This affects both desktop and mobile users, as reported in #1110 and confirmed by multiple users in #1166.
Root Cause
The
scrollStrengthModifierconstant inScrollManager.tswas set to8. At 60fps, this produces scroll speeds up to 480px/sec when the cursor is near the edge of the scroll zone — far too fast for accurate card placement.Fix
Reduced
scrollStrengthModifierfrom8to2.5.The new value of
2.5provides a good balance:scrollStrengthModifier=1was confirmed as usable (we use a slightly higher value for better large-board ergonomics)Testing
Fixes #1110