Equivalent of curdoc().hold("combine") on slider mouseup

This example shows how to use the nice hold(“combine” ) function:

A slider widget has the value_throttled attribute, that can be used for a callback:

Is there a way to somehow combine the two ideas?

I want my slider to call its callback on every update, but on mouseup all the (potentially) remaining events should be combined into a single event. This would make it seem much more responsive.

Is there any chance this is possible?

It’s possible to add callbacks to both "value" and "value_throttled" at the same time, so I don’t see why not.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.