Skip to content

Commit cc610eb

Browse files
committed
E_showMenu reference: tweak re Bangle 2 specifics
1 parent fca31bd commit cc610eb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libs/banglejs/jswrap_bangle.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5904,8 +5904,11 @@ On Bangle.js there are a few additions over the standard `graphical_menu`:
59045904
menu is removed
59055905
* (Bangle.js 2) `scroll : int` - an integer specifying how much the initial
59065906
menu should be scrolled by
5907-
* `onchange : function(value, touch) {}` - on Bangle.js 2 this function can
5908-
consider ~how~ the entry was touched. See `E.showScroller` for more info.
5907+
* (Bangle.js 2) The mapped functions can consider the current state of the
5908+
internal scroller and the touch event that interacted with the entry:
5909+
`"Entry" : function(scroller, touch) { ... }`
5910+
* This is also true of `onchange` mapped functions in entry objects:
5911+
`onchange : (value, scroller, touch) => { ... }`
59095912
* The object returned by `E.showMenu` contains:
59105913
* (Bangle.js 2) `scroller` - the object returned by `E.showScroller` -
59115914
`scroller.scroll` returns the amount the menu is currently scrolled by

0 commit comments

Comments
 (0)