svelte-color-select icon indicating copy to clipboard operation
svelte-color-select copied to clipboard

Release Outside is not triggered

Open andupotorac opened this issue 11 months ago • 10 comments

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.

andupotorac avatar Nov 27 '24 09:11 andupotorac

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?

CaptainCodeman avatar Nov 27 '24 16:11 CaptainCodeman

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.

andupotorac avatar Nov 30 '24 14:11 andupotorac

I've not been able to reproduce this:

https://github.com/user-attachments/assets/b24d6ebd-5dd7-4f01-bfd2-7ce871994cf6

CaptainCodeman avatar Dec 02 '24 18:12 CaptainCodeman

I will investigate more and come back to you on this, please keep this open momentarily.

andupotorac avatar Dec 02 '24 19:12 andupotorac

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

andreineamtu avatar Dec 02 '24 22:12 andreineamtu

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?

CaptainCodeman avatar Dec 03 '24 20:12 CaptainCodeman

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.

andreineamtu avatar Dec 04 '24 16:12 andreineamtu

@CaptainCodeman wondering if you had time to check this, which my colleague shared above.

andupotorac avatar Dec 13 '24 11:12 andupotorac

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.

CaptainCodeman avatar Dec 16 '24 17:12 CaptainCodeman

Did you try to click on it and quickly drag outside the area and release there?

andupotorac avatar Dec 17 '24 12:12 andupotorac