Ensure right bar x index is an int
							parent
							
								
									8efa2d2fc7
								
							
						
					
					
						commit
						4bb02ded2e
					
				| 
						 | 
					@ -245,7 +245,7 @@ class ChartView(ViewBox):
 | 
				
			||||||
            log.debug("Max zoom bruh...")
 | 
					            log.debug("Max zoom bruh...")
 | 
				
			||||||
            return
 | 
					            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...")
 | 
					            log.debug("Min zoom bruh...")
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -268,9 +268,9 @@ class ChartView(ViewBox):
 | 
				
			||||||
        #     ).map(furthest_right_coord)
 | 
					        #     ).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
 | 
					        # tws and tv styles
 | 
				
			||||||
        last_bar = pg.Point(rbar)
 | 
					        last_bar = pg.Point(int(rbar))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self._resetTarget()
 | 
					        self._resetTarget()
 | 
				
			||||||
        self.scaleBy(s, last_bar)
 | 
					        self.scaleBy(s, last_bar)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue