JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
299 stars 54 forks source link

slider: run on mouse release #267

Closed aplavin closed 7 months ago

aplavin commented 10 months ago

Would be nice to have an option of Slider that "confirms" the value and executes dependent cells only when mouse is released - not just dragged over the slider. Is that possible in html?

holomorphism commented 9 months ago

So, instead of using the confirm function as suggested in issue #177, you simply want to confirm the value when the mouse is released? I also thought it would be handy to have such an option, so I created a PR.

aplavin commented 9 months ago

Yes, great to see the PR! Hope it gets accepted.

For now, I added on_release::Bool option to the Slider widget in https://gitlab.com/aplavin/PlutoUIExtra.jl, based on your implementation. PlutoUIExtra.jl is a slowly but steadily growing collection of "extra" plutoui-related functionality.