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

Tracking of mouse movement for initially disabled PaneResizer #27

Open
dadebue opened this issue Jun 3, 2024 · 1 comment
Open

Tracking of mouse movement for initially disabled PaneResizer #27

dadebue opened this issue Jun 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dadebue
Copy link

dadebue commented Jun 3, 2024

Describe the bug

After enabling a PaneResizer, the pane sizes should not change when moving the mouse without click & hold on the PaneResizer

Reproduction

  • Add a disabled PaneResizer
  • Click on the disabled PaneResizer and drag the mouse
  • Stop mouse dragging
  • Enable the PaneResizer
  • Mouse movement is tracked and sizes are changed without dragging on the PaneResizer

REPL: https://svelte.dev/repl/b28a02a11b6f44bb857a02fa5c3d658c?version=4.2.17

Screenshot_2024-06-03_14-47-31.mp4

Logs

No response

System Info

svelte.dev repl (s. above)

Severity

annoyance

@dadebue dadebue changed the title Incorrect tracking of mouse movement for PaneResizer with dynamic "disabled" prop Tracking of mouse movement for initially disabled PaneResizer Jun 3, 2024
@huntabyte
Copy link
Member

Ah, interesting catch. There's likely some state that needs to be ignored if it is disabled so that it doesn't stay locked on. Will look into this soon.

@huntabyte huntabyte added the bug Something isn't working label Jun 5, 2024
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