Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-scrolling when moving the cursor outside of scrollable select area #150

Closed
vdnhi opened this issue Dec 10, 2021 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@vdnhi
Copy link
Contributor

vdnhi commented Dec 10, 2021

What is the problem?

I set up the vanilla selection.js and cause the problem of auto-scroll (always calling the event move) when the cursor is outside of the boundaries.

What is the current behavior?

Scrolling infinitely and trigger the move event listener infinitely.

Please provide the steps to reproduce and create a CodeSandbox.

My code sandbox:
https://codesandbox.io/s/viselect-vanilla-forked-l299t?file=/src/main.ts

What is the expected behavior?

It should stop the scrolling after scrolling a range of distance from the cursor to select area boundary.

Your environment:

Codesandbox

Live demo

bug.mov

The bug also happens on https://simonwep.github.io/selection/

bug2.mov
@vdnhi vdnhi added the unconfirmed Problem is not confirmed yet label Dec 10, 2021
@vdnhi
Copy link
Contributor Author

vdnhi commented Dec 14, 2021

@simonwep I think you attempted to fix this issue on this commit 23a2294 but I didn't see the updated changes on the latest version v3.0.0-beta.12?

@simonwep simonwep added bug Something isn't working and removed unconfirmed Problem is not confirmed yet labels Dec 19, 2021
@simonwep
Copy link
Owner

Closed by #151 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants