Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ef8eab

Browse filesBrowse files
authored
fix controller getting disabled (#354)
1 parent 9ab93a4 commit 1ef8eab
Copy full SHA for 1ef8eab

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎fastplotlib/graphics/selectors/_base_selector.py

Copy file name to clipboardExpand all lines: fastplotlib/graphics/selectors/_base_selector.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def _move_end(self, ev):
252252

253253
# restore the initial controller state
254254
# if it was disabled, keep it disabled
255-
self._plot_area.controller.enabled = self._initial_controller_state
255+
if self._initial_controller_state is not None:
256+
self._plot_area.controller.enabled = self._initial_controller_state
256257

257258
def _move_to_pointer(self, ev):
258259
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.