E_showScroller_Q3: comment out prints to console

This commit is contained in:
thyttan 2024-10-06 21:10:58 +02:00
parent 2db9f15ec2
commit 3ba1c56129

View File

@ -73,7 +73,7 @@ Bangle.setUI({
var i = YtoIdx(e.y);
let yAbs = (e.y + rScroll - R.y);
let yInElement = yAbs - i*options.h;
print(" ",idxToY(i));
//print(" ",idxToY(i));
if (e.y>163 && idxToY(i)>163) { // 12px from bottom
/* If the bottom-most item is only just showing and we
tap on it, choose the one above instead */
@ -81,7 +81,7 @@ Bangle.setUI({
yInElement=options.h-1;
}
if ((menuScrollMin<0 || i>=0) && i<options.c){
console.log("Press ",e.y,i,yInElement);
//console.log("Press ",e.y,i,yInElement);
options.select(i, {x:e.x, y:yInElement});
}
}
@ -115,4 +115,4 @@ var rScroll = s.scroll&~1; // rendered menu scroll (we only shift by 2 because o
s.draw(); // draw the full scroller
g.flip(); // force an update now to make this snappier
return s;
});
});