mirror of https://github.com/espruino/BangleApps
Merge pull request #3364 from thyttan/clockinfo
clock_info: prepend swipe listener if possiblepull/3392/head
commit
ddab537ea2
|
@ -9,3 +9,4 @@
|
|||
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: Fix focus bug when changing focus between two clock infos
|
||||
0.11: 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;
|
||||
Bangle.CLKINFO_FOCUS--;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ "id": "clock_info",
|
||||
"name": "Clock Info Module",
|
||||
"shortName": "Clock Info",
|
||||
"version":"0.10",
|
||||
"version":"0.11",
|
||||
"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