svecosystem / paneforge

Resizable pane components for Svelte.
https://paneforge.com
MIT License
370 stars 3 forks source link

Tracking of mouse movement for initially disabled PaneResizer #27

Open dadebue opened 2 months ago

dadebue commented 2 months ago

Describe the bug

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

Reproduction

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

https://github.com/svecosystem/paneforge/assets/81422785/c1d21987-e562-4813-9ef3-a13e11dd7f0f

Logs

No response

System Info

svelte.dev repl (s. above)

Severity

annoyance

huntabyte commented 2 months ago

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.