From abac60a0f438c315ab4ddf80b741d4ea4c5e5d09 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 18 Dec 2022 19:50:07 -0500 Subject: [PATCH] Drop coordinate cacheing from `BarItems`, causes weird jitter on pan --- piker/ui/_ohlc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/piker/ui/_ohlc.py b/piker/ui/_ohlc.py index f717b1a5..288af70d 100644 --- a/piker/ui/_ohlc.py +++ b/piker/ui/_ohlc.py @@ -118,9 +118,11 @@ class BarItems(pg.GraphicsObject): self.last_bar_pen = pg.mkPen(hcolor(last_bar_color), width=2) self._name = name - self.setCacheMode(QtWidgets.QGraphicsItem.DeviceCoordinateCache) - self.path = QPainterPath() + # XXX: causes this weird jitter bug when click-drag panning + # where the path curve will awkwardly flicker back and forth? + # self.setCacheMode(QtWidgets.QGraphicsItem.DeviceCoordinateCache) + self.path = QPainterPath() self._last_bar_lines: tuple[QLineF, ...] | None = None def x_uppx(self) -> int: