From 445746bbcbba10706a833156a42c6603da7bac0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Sun, 11 Jun 2023 13:02:43 +0200 Subject: [PATCH] Disable pan if active_tools=[] --- holoviews/plotting/bokeh/element.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py index 6fd07fe0aa..e2809bd794 100644 --- a/holoviews/plotting/bokeh/element.py +++ b/holoviews/plotting/bokeh/element.py @@ -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))