svelte-color-select
svelte-color-select copied to clipboard
Release Outside is not triggered
Thanks a lot for the fix on the #000000 color issue.
The other issue I mentioned in the video there is that when you release the mouse outside the color area for both the Color Picker and the Hue Bar, the release outside event is ignored and the Thumb/Slider keeps tracking the mouse without drag.
I'm having trouble reproducing this on the https://captaincodeman.github.io/svelte-color-select/ demo page, I'll try it on a different PC with a different mouse - but I presume you're just left-clicking then releasing when outside the areas, then when you move the mouse back over it's still moving the selection point?
I'm having trouble reproducing this on the https://captaincodeman.github.io/svelte-color-select/ demo page, I'll try it on a different PC with a different mouse - but I presume you're just left-clicking then releasing when outside the areas, then when you move the mouse back over it's still moving the selection point?
Yep, that's exactly what I do. Tested on different macs.
I've not been able to reproduce this:
https://github.com/user-attachments/assets/b24d6ebd-5dd7-4f01-bfd2-7ce871994cf6
I will investigate more and come back to you on this, please keep this open momentarily.
Hi, This bug happens on both sliders if you click somewhere(where the cursor is not) and drag fast and release outside the slider and then come back. You will see that when you come back on the slider the cursor goes after the mouse.
Check the attached video where I show on both sliders how to replicate it: https://github.com/user-attachments/assets/dc2cb769-f637-4ed5-b97f-f59e6578cdc5
That didn't help I'm afraid - I can't really see when clicks are happening.
Maybe try triggering it on https://svelte.dev/playground/03c63fb006424725863435af19e67bce?version=5.5.2 and let me know what is logged?
Hi,
Here is a more clear video where I explain how to duplicate the bug: https://youtu.be/HKIw6D4KWdM Let us know if you can duplicate it and fix it.
Thank you.
@CaptainCodeman wondering if you had time to check this, which my colleague shared above.
I still haven't been able to reproduce it. My best guess is that it's some different mouse button being activated at some point, so I'll add some checks for it being the primary pointer.
Did you try to click on it and quickly drag outside the area and release there?