Skip to content

Conversation

@jo16oh
Copy link

@jo16oh jo16oh commented Jul 24, 2025

Solves #206 (comment).

As mentioned in the latest comment on the issue, drag-scrolling on Safari deselects previously selected items.
This PR resolves this issue by correctly expanding the selection area with the actual scroll delta.

@jo16oh
Copy link
Author

jo16oh commented Jul 24, 2025

P.S.

On Safari, the selection area does not expand as expected when drag-scrolling very slowly. This is because Safari has a lower threshold for initiating a drag-scroll, which causes the calculated _scrollSpeed to be lower than its actual value.

I found a simple workaround. Adding the behavior: { scrolling: { startScrollMargins: { x: 18, y: 18 } } } option makes it work as expected. The ideal threshold value may vary depending on the scroll area's styling or other factors, but this setting works for the demo in this repository.

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