Update observables only when slider is released

For expensive computations, how can we slide on a Slider without triggering all intermediate values? One workaround is to add a separate Toggle to turn the computation on/off, but that adds unnecessary logic to the application. Is there a LazySlider or similar widget in Makie.jl?

Slider has the keyword update_while_dragging. Set it to false to only emit a value when the user releases the handle, avoiding intermediate updates.

For future reference, this same option is available in the SliderGrid if you loop over the constituent sliders and set it afterwards:

grid = SliderGrid(...)

for slider in grid.sliders
  slider.update_while_dragging[] = false
end