ctrlpad: use E.stopEventPropagation

pull/3383/head
Rob Pilling 2024-04-24 17:25:16 +01:00
parent 71f8471eb0
commit 0887e59337
1 changed files with 2 additions and 0 deletions

View File

@ -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;