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

Selecting text in panes then resizing doesn't release splitter #211

Open
MattTheCuber opened this issue Sep 30, 2024 · 0 comments
Open

Selecting text in panes then resizing doesn't release splitter #211

MattTheCuber opened this issue Sep 30, 2024 · 0 comments

Comments

@MattTheCuber
Copy link

MattTheCuber commented Sep 30, 2024

If you select text in the panes, then resize the panes, the splitter doesn't get released and is stuck to your cursor until you click somewhere again. This seems to have something to do with how web browsers allow you to select and drag text to move them to other inputs or apps. Extremely niche bug, could be solved by disabling text selection but that is not ideal.

Reproduction steps

  1. Select some text in multiple adjacent panes (or just press CTRL+A)
  2. Drag the splitter between the panes
  3. Release the mouse button
  4. Move your mouse and watch the splitter continue follow the cursor

Happens in Chrome and Firefox.

Demo

output

on https://antoniandre.github.io/splitpanes/

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

No branches or pull requests

1 participant