Drop the legacy `relayed_from` cruft from our view box
parent
42810056c3
commit
5f5843613e
|
@ -467,7 +467,6 @@ class ChartView(ViewBox):
|
||||||
self,
|
self,
|
||||||
ev,
|
ev,
|
||||||
axis=None,
|
axis=None,
|
||||||
# relayed_from: ChartView = None,
|
|
||||||
):
|
):
|
||||||
'''
|
'''
|
||||||
Override "center-point" location for scrolling.
|
Override "center-point" location for scrolling.
|
||||||
|
@ -482,7 +481,6 @@ class ChartView(ViewBox):
|
||||||
if (
|
if (
|
||||||
not linked
|
not linked
|
||||||
):
|
):
|
||||||
# print(f'{self.name} not linked but relay from {relayed_from.name}')
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if axis in (0, 1):
|
if axis in (0, 1):
|
||||||
|
@ -604,21 +602,8 @@ class ChartView(ViewBox):
|
||||||
self,
|
self,
|
||||||
ev,
|
ev,
|
||||||
axis: Optional[int] = None,
|
axis: Optional[int] = None,
|
||||||
# relayed_from: ChartView = None,
|
|
||||||
|
|
||||||
) -> None:
|
) -> None:
|
||||||
# if relayed_from:
|
|
||||||
# print(f'PAN: {self.name} -> RELAYED FROM: {relayed_from.name}')
|
|
||||||
|
|
||||||
# NOTE since in the overlay case axes are already
|
|
||||||
# "linked" any x-range change will already be mirrored
|
|
||||||
# in all overlaid ``PlotItems``, so we need to simply
|
|
||||||
# ignore the signal here since otherwise we get N-calls
|
|
||||||
# from N-overlays resulting in an "accelerated" feeling
|
|
||||||
# panning motion instead of the expect linear shift.
|
|
||||||
# if relayed_from:
|
|
||||||
# return
|
|
||||||
|
|
||||||
pos = ev.pos()
|
pos = ev.pos()
|
||||||
lastPos = ev.lastPos()
|
lastPos = ev.lastPos()
|
||||||
dif = pos - lastPos
|
dif = pos - lastPos
|
||||||
|
|
Loading…
Reference in New Issue