You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
messagegui: move hw btn action to back fn of E.showScroller
Instead of adding an external button handler.
This works now that [the red back widget is not added if widgets are not
shown](espruino/Espruino@453def8). This means we should wait for fw 2v26 stable before maybe merging this change to espruino/BangleApps.
// If Bangle.js 2 add an external back hw button handler.
403
-
letbtnWatch;
404
-
if(2===process.env.HWVERSION){
405
-
btnWatch=setWatch(()=>{
406
-
if("scroller"!==active){return;}
407
-
Bangle.emit("drag",{dy:0});// Compatibility with `kineticscroll`, stopping the scroller so it doesn't continue scrolling when the `showMessageOverview` screen is loaded.
408
-
// Zero ms timeout as to not move on before the scroller has registered the emitted drag event.
0 commit comments