refactor, fix: Slider improvements#745
Conversation
|
This turned out to be a bigger diff than I had hoped for, but luckily all changes outside |
|
With this PR checked out, the first time I opened the image I encountered the following error: In addition:
|
Interesting, I'll look at this when I can. What browser/OS are you using? |
Windows with Edge WebView
Thanks! It isn't just related to B, it happens on all the shortcuts. |
|
|
|
Scrolling should now work for you, and I re-added the escaping of global keys. Something that should be fixed though, is that holding global keys down make the effect toggle every render. (That's a problem for later though!) The Uncaught TypeError seems to be caused by something incorrectly passing undefined to slider as value. I'm having a hard time figuring out what though, as I'm unable to reproduce it and some parts of the project make liberal use of typing as any. Maybe you could provide the image that caused it, and say what modal/slider caused it? Edit: I found it! The issue is in the MasksPanel. The CA was missing default values. I've fixed that now, but I also found an old bug lol |
9a7ca37 to
8ebc5cb
Compare
|
I've now rebased this PR so it's now completely independent from #738 and they can be merged in any order. |
|
This should be ready for another review. |
|
Thanks for the update!! Just had a quick look, but moving a slider and then pressing F still doesn’t pass through to fullscreen - it just refocuses the slider :/ |
That is very weird as the code regarding that functionality is now identical to the code currently in Here's what It looks like to me when I move the slider and press F: Other global keys also function like they did before in my testing. |
|
Could you re-check if you have the issue? I am still unable to replicate it by any of the following methods:
|
This PR fixes shift scroll not working, adds disabled state and refactors Slider to simplify the component. This PR also adds a generated docstring, I have checked that it is sufficient and technically correct.
This PR also updates usages of Slider.
Behaviour changes:
onChangereturn fromevent[string | number]tonumberRemovedhandleRangeKeyDown, as I do not see a reason for having it and caused buggy behaviour.Depends on #738 (changes in Dropdown are from that pr, since I (partially) made it before branching)