EmNudge/tauri-color-picker

Inputs should not be selectable while moving slider

EmNudge opened this issue · 0 comments

From my experience, it does not normally work like this, but because of how difficult it is to style normal sliders, these were made custom.

I first tried testing with css variables. Any slider, once grabbed, would change a css variable on :root which all inputs would have themselves. user-select was tried at first, but it did not work for inputs. pointer-events was tried next. It worked, but not for the kind of selecting behavior that I was getting.

The solutions for this might be to either disable the inputs or replace them with a div using a svelte store. This store would be toggled when grabbing any slider, affecting all the inputs.

This issue is tracking progress on that.