swscroll: forward the type of touch (short/long).

Bring in change from the firmware implementation forwarding the type of touch (short/long).
pull/3609/head
thyttan 2024-10-12 00:20:23 +02:00
parent 3d7c6db2af
commit 4771e0f556
3 changed files with 3 additions and 2 deletions

View File

@ -5,3 +5,4 @@
0.05: Fix for the rebase in ver 0.04. Check boxes didn't behave but now they do.
0.06: Minor code improvements
0.07: Minor code improvements
0.08: Bring in change from the firmware implementation forwarding the type of touch (short/long).

View File

@ -76,7 +76,7 @@ Bangle.setUI({
if ((menuScrollMin<0 || i>=0) && i<options.c){
let yAbs = (e.y + rScroll - R.y);
let yInElement = yAbs - i*options.h;
options.select(i, {x:e.x, y:yInElement});
options.select(i, {x:e.x, y:yInElement, type:e.type});
}
}
});

View File

@ -1,7 +1,7 @@
{
"id": "swscroll",
"name": "Swipe menus",
"version": "0.07",
"version": "0.08",
"description": "Replace built in E.showScroller to act on swipe instead of drag. Navigate menus in discrete steps instead of a continuous motion.",
"readme": "README.md",
"icon": "app.png",