From 6d50ad75a7f59bd05a2ebbeb63533b2a3f064cdc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 10 Dec 2020 15:44:20 -0500 Subject: [PATCH] Ensure right bar x index is an int --- piker/ui/_interaction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index fbd5694b..464fd80e 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -245,7 +245,7 @@ class ChartView(ViewBox): log.debug("Max zoom bruh...") return - if ev.delta() < 0 and vl >= len(self.linked_charts._array) + 666: + if ev.delta() < 0 and vl >= len(self.linked_charts.chart._ohlc) + 666: log.debug("Min zoom bruh...") return @@ -268,9 +268,9 @@ class ChartView(ViewBox): # ).map(furthest_right_coord) # ) - # This seems like the most "intuitive option, a hybrdid of + # This seems like the most "intuitive option, a hybrid of # tws and tv styles - last_bar = pg.Point(rbar) + last_bar = pg.Point(int(rbar)) self._resetTarget() self.scaleBy(s, last_bar)