mirror of https://github.com/espruino/BangleApps
widlockunlock: stop event propagation on tap
parent
4b38e2af42
commit
04057c4018
|
@ -11,6 +11,8 @@ Bangle.on('touch', (_btn, xy) => {
|
||||||
if(w.x - oversize <= x && x < w.x + 14 + oversize
|
if(w.x - oversize <= x && x < w.x + 14 + oversize
|
||||||
&& w.y - oversize <= y && y < w.y + 24 + oversize)
|
&& w.y - oversize <= y && y < w.y + 24 + oversize)
|
||||||
{
|
{
|
||||||
|
E.stopEventPropagation && E.stopEventPropagation();
|
||||||
|
|
||||||
Bangle.setLocked(true);
|
Bangle.setLocked(true);
|
||||||
|
|
||||||
const backlightTimeout = Bangle.getOptions().backlightTimeout; // ms
|
const backlightTimeout = Bangle.getOptions().backlightTimeout; // ms
|
||||||
|
|
Loading…
Reference in New Issue