
Does anyone know how to prevent your web browser from scrolling on wheel events?
I’m trying to scroll through a 3D data set, using the mouse wheel to scroll through the z-axis. The code below works great, but the web browser will still scroll on these events. I could not find the Bokeh source code that illustrates how they do this for WheelZoomTool. Presumably this requires some custom JS?
my_figure.on_event(events.MouseWheel, my_wheel_function)
def my_wheel_function(event):
if scrolling_check_box.active:
if event.delta > 0:
go_to_next_slice()
elif event.delta < 0:
go_to_previous_slice()
``

