rvion / CushyStudio

đŸ›‹ The AI and Generative Art platform for everyone
https://docs.cushystudio.com/
GNU Affero General Public License v3.0
681 stars 49 forks source link

Relative sliders #138

Closed birdddev closed 9 months ago

birdddev commented 9 months ago

WIP commit for relative slider widgets. This makes sliders change from the current value towards the direction the mouse moves while dragging, instead of jumping to the value along the slider when clicking.

Bugs with implementation as of right now:

Stuff that can be in another PR, but would be nice to implement now.

Notes: I did not add the theme changes to this, as you wanted them in a different PR. I think it would be okay to have a different commit in this one though, since they need to be edited to make the text for these easier to read. This does include the shadows, but it only effects the sliders. I would like to make this change global, but I don't know where I should put it exactly, and that can be part of the other PR if you don't want any theme changes in this one. There is a slight issue with using Escape to cancel, as the PointerLock api hardcodes this button to not allow a lock for 1 second after pressing escape, but I don't think it's a real problem. It just doesn't feel polished.

CLAassistant commented 9 months ago

CLA assistant check
All committers have signed the CLA.

rvion commented 9 months ago

amazing !