I used p.x_range.on_change(‘start’, callback) for boxzoom event.
But this calback also runs when I pan as well. I do not want callback to run when I pan.
How can I prevent callback from running panning?
Or
Is there any event for boxzooming?
regards
There is not an even for box zoom. There is a box Selection event. The BoxSelectionTool emits a SelectionGeometry event that you could use with on_event. The event data will contain a geometry object that reports both screen and data space extents of the box:
thank you,
SelectionGeometry is a js event.
I need a python function.
Is there any way to generate a python function from SelectionGeometry event?
regards