zalo / CascadeStudio

A Full Live-Scripted CAD Kernel in the Browser
https://zalo.github.io/CascadeStudio/
MIT License
1.03k stars 129 forks source link

Slider with realTime false evaluates instantly, hard to change values in UI #61

Closed johnsonm closed 3 years ago

johnsonm commented 3 years ago

It's hard to use the sliders.

Am I missing something?

zalo commented 3 years ago

This is good commentary; the real-time slider only differentiates between "Evaluate as you drag" and "Evaluate when you let go".

I'll look into making it switch between "Evaluate only when you hit the evaluate button" and "Evaluate when you let go".

johnsonm commented 3 years ago

Could you maybe also look into "realTime===false" meaning "typing doesn't count until you hit enter or lose focus" at the same time?

zalo commented 3 years ago

Changed in https://github.com/zalo/CascadeStudio/commit/42620ebc56311c697f84747957a6630bd4e3bc8c

realTime now means that slider changes will only apply after you've finished dragging the slider.

By default, Sliders will now not cause a rebuild (via dragging or typing). Unfortunately, they will still attempt to enforce their range while typing, which is fairly annoying (and often requires highlighting the text to replace it). This is a deeper issue within ControlKit, and harder to fix, unfortunately :-(

johnsonm commented 3 years ago

Thank you so much for the changes! It is so much easier now!