Skip to content
Snippets Groups Projects
Commit 0895c7ad authored by Kien Le's avatar Kien Le
Browse files

Disable scroll events being picked up unintentionally

parent 291dc15a
No related branches found
No related tags found
1 merge request!69Improve performance when scrolling in TPS plot
Pipeline #2192 passed with stage
in 2 minutes and 46 seconds
...@@ -280,6 +280,10 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget): ...@@ -280,6 +280,10 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget):
:param event: pick event - event when object of canvas is selected. :param event: pick event - event when object of canvas is selected.
The event happens before button_press_event. The event happens before button_press_event.
""" """
if event.mouseevent.name == 'scroll_event':
return
if event.mouseevent.button in ('up', 'down'):
return
info_str = "" info_str = ""
if event.artist in self.axes: if event.artist in self.axes:
xdata = event.mouseevent.xdata xdata = event.mouseevent.xdata
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment