Skip to content

Commit ffc4f8b

Browse files
author
thyttan
committed
Merge branch 'kineticscroll' into app-loader
2 parents 83dec0c + 89e4349 commit ffc4f8b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

apps/kineticscroll/ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
0.03: Better scrolling behaviour
44
0.04: Fix incorrect appRect handling (missing back buttons and doubled menu titles)
55
0.05: Bring in change from the firmware implementation forwarding the type of touch (short/long).
6+
0.06: Disregard long touches since they make it easy to unintentionally select
7+
menu entries.
8+
0.07: Add "ram" keyword to see if it gets snappier.

apps/kineticscroll/boot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function() {
2-
E.showScroller = function(options) {
2+
E.showScroller = function(options) {"ram";
33
/* options = {
44
h = height
55
c = # of items
@@ -42,6 +42,7 @@
4242
};
4343

4444
const touchHandler = (_,e)=>{
45+
if (e.type) return; // e.type == 0 for swift touches or 2 for longer ones.
4546
let R = Bangle.appRect;
4647
if (e.y<R.y-4) return;
4748
velocity = 0;

apps/kineticscroll/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "id": "kineticscroll",
22
"name": "Kinetic Scroll",
33
"shortName":"Kinetic Scroll",
4-
"version": "0.05",
4+
"version": "0.06",
55
"description": "Replacement for the system scroller with kinetic scrolling.",
66
"icon": "app.png",
77
"type": "bootloader",

0 commit comments

Comments
 (0)