forked from FOSS/BangleApps
ha: disable swiping on sliders and prevent swipe event propagation
parent
13997ca678
commit
cce28d9675
|
@ -147,11 +147,14 @@ Bangle.on('touch', (btn, e) => {
|
|||
});
|
||||
|
||||
Bangle.on("swipe", (lr,ud) => {
|
||||
if (slider) return; // "disable" swiping on sliders
|
||||
|
||||
if (lr == -1) {
|
||||
toLeft();
|
||||
} else if (lr == 1) {
|
||||
toRight();
|
||||
}
|
||||
E.stopEventPropagation && E.stopEventPropagation();
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue