Skip to content

Commit

Permalink
Disable pan if active_tools=[] (#5754)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Jun 12, 2023
1 parent 471941d commit c5cb45f
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 c5cb45f

Please sign in to comment.