playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
673 stars 65 forks source link

Enable acceleration for value draggers #378

Open yaustar opened 4 years ago

yaustar commented 4 years ago

Some users would like to make larger changes by dragging the value dragger. Suggestions have included to be based on mouse acceleration and using hotkeys.

I'm not a big fan of hotkeys unless it is super obvious and would prefer mouse acceleration instead that could be adjusted in the editor settings similar to FPS games.

Maksims commented 4 years ago

Each number field in inspector, have "precision" setting internally, which is used to round up floats to avoid dozen 0's due to float number math issues. And arrow Up/Down tied to that precision number. I would assume value draggers are tied to that prevision number too. Perhaps there can be an option to define specifically more reasonable step value for draggers to try suit majority of cases. This would obviously be based on assumptions.

Additionally it makes sense to add Shift hotkey during dragging, if it is held, then increase step by 10 or other value (not too large that makes things fly away, and not too little that would make it not useful).

yaustar commented 3 years ago

An alternative solution (that was posted from Twitter) https://twitter.com/mmyyffaauulltt/status/1359549694259716097

A 'ladder' is interesting implementation ladder

yaustar commented 2 years ago

@jiajasper Any UX ideas on this one? :)