In the example below, the Tap event works but also seems to work outside the right hand side of the plot area, up to the edge of the toolbar. If you click within the toolbar, the controls work, but it also updates the plot. You can also click below the toolbar and the plot updates. The problem appeared in 0.12.11 onwards.
Software versions...
Bokeh 0.12.13
Python 3.5.2
Firefox 57.0.4 (64 bit)
from bokeh.models.sources import ColumnDataSource
from bokeh.plotting import Figure
from bokeh.io import curdoc
from bokeh.events import Tap
fig = Figure()
line_src = ColumnDataSource(data={'x': [0, 1], 'y': [0, 1]})
line = fig.line('x', 'y', source=line_src)
def update_data(event):
line_src.data['x'][1] = event.x
line_src.data['y'][1] = event.y
fig.renderers.remove(line)
fig.renderers.append(line)
fig.on_event(Tap, update_data)
curdoc().add_root(fig)
In the example below, the Tap event works but also seems to work outside the right hand side of the plot area, up to the edge of the toolbar. If you click within the toolbar, the controls work, but it also updates the plot. You can also click below the toolbar and the plot updates. The problem appeared in 0.12.11 onwards.
Software versions...
Bokeh 0.12.13
Python 3.5.2
Firefox 57.0.4 (64 bit)