Skip to content

Commit 52bf100

Browse files
authored
Document event handling for 2v18 firmware
Add comment about stopping event handlers on 2v18 firmware.
1 parent d7509b5 commit 52bf100

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/clock_info/lib.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ exports.addInteractive = function(menu, options) {
322322
oldMenuItem.removeAllListeners("draw");
323323
menuShowItem(menu[options.menuA].items[options.menuB]);
324324
}
325+
// On 2v18+ firmware we can stop other event handlers from being executed since we handled this
325326
E.stopEventPropagation&&E.stopEventPropagation();
326327
}
327328
if (Bangle.prependListener) {Bangle.prependListener("swipe",swipeHandler);} else {Bangle.on("swipe",swipeHandler);}

0 commit comments

Comments
 (0)