Skip to content

Commit

Permalink
E_showMenu reference: tweak re Bangle 2 specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Oct 8, 2024
1 parent fca31bd commit cc610eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/banglejs/jswrap_bangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -5904,8 +5904,11 @@ On Bangle.js there are a few additions over the standard `graphical_menu`:
menu is removed
* (Bangle.js 2) `scroll : int` - an integer specifying how much the initial
menu should be scrolled by
* `onchange : function(value, touch) {}` - on Bangle.js 2 this function can
consider ~how~ the entry was touched. See `E.showScroller` for more info.
* (Bangle.js 2) The mapped functions can consider the current state of the
internal scroller and the touch event that interacted with the entry:
`"Entry" : function(scroller, touch) { ... }`
* This is also true of `onchange` mapped functions in entry objects:
`onchange : (value, scroller, touch) => { ... }`
* The object returned by `E.showMenu` contains:
* (Bangle.js 2) `scroller` - the object returned by `E.showScroller` -
`scroller.scroll` returns the amount the menu is currently scrolled by
Expand Down

0 comments on commit cc610eb

Please sign in to comment.