clock_info: prepend swipe listener if possible
parent
c2ea454a3b
commit
f508f66c57
|
|
@ -8,3 +8,4 @@
|
|||
0.07: Developer tweak: clkinfo load errors are emitted
|
||||
0.08: Pass options to show(), hide() and run(), and add focus() and blur() item methods
|
||||
0.09: Save clkinfo settings on kill and remove
|
||||
0.10: Prepend swipe listener if possible
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ exports.addInteractive = function(menu, options) {
|
|||
// On 2v18+ firmware we can stop other event handlers from being executed since we handled this
|
||||
E.stopEventPropagation&&E.stopEventPropagation();
|
||||
}
|
||||
Bangle.on("swipe",swipeHandler);
|
||||
if (Bangle.prependListener) {Bangle.prependListener("swipe",swipeHandler);} else {Bangle.on("swipe",swipeHandler);}
|
||||
const blur = () => {
|
||||
options.focus=false;
|
||||
delete Bangle.CLKINFO_FOCUS;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ "id": "clock_info",
|
||||
"name": "Clock Info Module",
|
||||
"shortName": "Clock Info",
|
||||
"version":"0.09",
|
||||
"version":"0.10",
|
||||
"description": "A library used by clocks to provide extra information on the clock face (Altitude, BPM, etc)",
|
||||
"icon": "app.png",
|
||||
"type": "module",
|
||||
|
|
|
|||
Loading…
Reference in New Issue