Skip to content

Commit

Permalink
E_showScroller_Q3: comment out prints to console
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Oct 6, 2024
1 parent 2db9f15 commit 3ba1c56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/js/banglejs/E_showScroller_Q3.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ 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 */
i--;
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});
}
}
Expand Down Expand Up @@ -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;
});
});

0 comments on commit 3ba1c56

Please sign in to comment.