Skip to content

Commit

Permalink
Merge pull request #6347 from janezd/plot-utils-no-jittering-susp
Browse files Browse the repository at this point in the history
InteractiveViewBox: Don't suspend_jittering for graphs that don't support it
  • Loading branch information
VesnaT authored Feb 24, 2023
2 parents d600dab + b3d7163 commit b10335e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Orange/widgets/visualize/utils/plotutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,15 @@ def select():
self.safe_update_scale_box(ev.buttonDownPos(), ev.pos())
if ev.isFinish():
self._updateDragtipShown(False)
self.graph.unsuspend_jittering()
if hasattr(self.graph, "unsuspend_jittering"):
self.graph.unsuspend_jittering()
self.rbScaleBox.hide()
value_rect = get_mapped_rect()
self.graph.select_by_rectangle(value_rect)
else:
self._updateDragtipShown(True)
self.graph.suspend_jittering()
if hasattr(self.graph, "suspend_jittering"):
self.graph.suspend_jittering()
self.safe_update_scale_box(ev.buttonDownPos(), ev.pos())

def zoom():
Expand Down

0 comments on commit b10335e

Please sign in to comment.