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) => {
|
Bangle.on("swipe", (lr,ud) => {
|
||||||
|
if (slider) return; // "disable" swiping on sliders
|
||||||
|
|
||||||
if (lr == -1) {
|
if (lr == -1) {
|
||||||
toLeft();
|
toLeft();
|
||||||
} else if (lr == 1) {
|
} else if (lr == 1) {
|
||||||
toRight();
|
toRight();
|
||||||
}
|
}
|
||||||
|
E.stopEventPropagation && E.stopEventPropagation();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue