Commits

Aleš Erjavec committed 957e603

Ignore mouse press events not started on the plot canvas.

Comments (0)

Files changed (1)

Orange/OrangeWidgets/OWGraph.py

             if handled: return
         QwtPlot.mousePressEvent(self, e)
         canvasPos = self.canvas().mapFrom(self, e.pos())
+
+        if not self.canvas().contentsRect().contains(canvasPos):
+            # Press on the legend or axis widget.
+            return
+
         xFloat = self.invTransform(QwtPlot.xBottom, canvasPos.x())
         yFloat = self.invTransform(QwtPlot.yLeft, canvasPos.y())
         self.xpos = canvasPos.x()