From cc610eb1a3bc4e0dc623b8b0d5f2f5192bce6d43 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com> Date: Tue, 8 Oct 2024 22:49:55 +0200 Subject: [PATCH] E_showMenu reference: tweak re Bangle 2 specifics --- libs/banglejs/jswrap_bangle.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/banglejs/jswrap_bangle.c b/libs/banglejs/jswrap_bangle.c index 17db634e8..72f61da4b 100644 --- a/libs/banglejs/jswrap_bangle.c +++ b/libs/banglejs/jswrap_bangle.c @@ -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