ref: 8d3b580ab315f529d757810cea3d2de3faad8076
parent: bcd9cd180c7b4322919c5e07f7a398d65d97bb0e
author: phil9 <telephil9@gmail.com>
date: Thu Jan 27 06:04:13 EST 2022
fix mouse hover not taking scroll offset into account
--- a/candlestick.c
+++ b/candlestick.c
@@ -312,7 +312,7 @@
switch(alt(a)){
case 0:
if(ptinrect(m.xy, arear)){
- n = ((m.xy.x - arear.min.x) / 6) - 1;
+ n = offset + ((m.xy.x - arear.min.x) / 6) - 1;
if(n > 0 && n < chart.nprices){
drawlegend(&chart.prices[n]);
l = 1;