Add explanatory comment
This commit is contained in:
parent
9bfdda06a6
commit
6b26245e50
@ -1069,6 +1069,10 @@ class AxisItem(GraphicsWidget):
|
|||||||
ret = self.linkedView().mouseDragEvent(event, axis=1)
|
ret = self.linkedView().mouseDragEvent(event, axis=1)
|
||||||
else:
|
else:
|
||||||
ret = self.linkedView().mouseDragEvent(event, axis=0)
|
ret = self.linkedView().mouseDragEvent(event, axis=0)
|
||||||
|
# Ignore event because if grid lines are enabled, we don't want the
|
||||||
|
# AxisItem to eat events meant for the ViewBox (see PR #565). A better
|
||||||
|
# solution here is to have grid lines drawn by a separate item inside the
|
||||||
|
# viewbox.
|
||||||
event.ignore()
|
event.ignore()
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user