Repository navigation
Only drag on auto scroll when the container scrolled - #693
Merged
NullVoxPopuli merged 1 commit intoNov 9, 2026
Merged
Conversation
At the end of the scroll container, checkScrollBounds called drag on every animation frame. Each call re-armed the updateInterval throttle, so settled() only resolved if a poll fell between two frames. The container auto scroll tests then took 1 to 90 seconds on CI and sometimes timed out.
✅ Deploy Preview for ember-sortable canceled.
|
NullVoxPopuli
approved these changes
Nov 9, 2026
Merged
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.
The container auto scroll tests take 1 to 90 seconds on CI and sometimes time out at 60 seconds, also on master.
At the end of the scroll container,
checkScrollBoundscallsdragon every animation frame, also when the container did not scroll. Each call re-arms theupdateIntervalthrottle, sosettled()only resolves if a poll falls between two frames. Thedragtest helper sendsmouseuponly aftersettled().Now
dragruns only when the container scrolled. If it did not scroll, the call did not move the item.Other libraries also do no work when the container cannot scroll further:
AutoScroll.js#L226-L245)vyis 0 whenscrollPosY + heightreachesscrollHeight, so the scroll interval is cleared.Scroller.ts#L169-L231)canScroll()is false, soscroll()returnsfalseand schedules nothing.deltais 0, sodragis not called.Time of the two container auto scroll tests on CI, all jobs: