fix legendItem drag
This commit is contained in:
parent
670d63cdf4
commit
bc3acdd5fd
@ -128,6 +128,7 @@ class LegendItem(GraphicsWidget, GraphicsWidgetAnchor):
|
||||
|
||||
def mouseDragEvent(self, ev):
|
||||
if ev.button() == QtCore.Qt.LeftButton:
|
||||
ev.accept()
|
||||
dpos = ev.pos() - ev.lastPos()
|
||||
self.autoAnchor(self.pos() + dpos)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user