mirror of https://github.com/espruino/BangleApps
ctrlpad: use E.stopEventPropagation
parent
71f8471eb0
commit
0887e59337
|
@ -218,6 +218,7 @@
|
||||||
}
|
}
|
||||||
ui.overlay.setBottom(e.y - dragOffset);
|
ui.overlay.setBottom(e.y - dragOffset);
|
||||||
}
|
}
|
||||||
|
E.stopEventPropagation?.();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case State.Active:
|
case State.Active:
|
||||||
|
@ -269,6 +270,7 @@
|
||||||
const ctrl = ui.ctrls.hitTest(xy.x - left, xy.y - top);
|
const ctrl = ui.ctrls.hitTest(xy.x - left, xy.y - top);
|
||||||
if(ctrl){
|
if(ctrl){
|
||||||
onCtrlTap(ctrl, ui);
|
onCtrlTap(ctrl, ui);
|
||||||
|
E.stopEventPropagation?.();
|
||||||
}
|
}
|
||||||
}) satisfies TouchCallback;
|
}) satisfies TouchCallback;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue