Skip to content

Commit

Permalink
Disable pan if active_tools=[]
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jun 11, 2023
1 parent 818e649 commit 445746b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ def _set_active_tools(self, plot):
else:
active_tools = self.active_tools

if active_tools == []:
# Removes Bokeh default behavior of having Pan enabled by default
plot.toolbar.active_drag = None

for tool in active_tools:
if isinstance(tool, str):
tool_type = TOOL_TYPES.get(tool, type(None))
Expand Down

0 comments on commit 445746b

Please sign in to comment.