Trying to implement smooth scrolling #5798
Replies: 1 comment
-
Posted at 2022-12-26 by @thyttan What do you mean by smooth scrolling? In what situations/apps? If you have updated the firmware and apps to current versions on the app loader I think you should have smooth scrolling e.g. in the settings menu, which uses E.showScroller, for scrolling, I think via E.showMenu. Posted at 2022-12-26 by KTibow You know how on phones scrolling has easing and keeps going at your velocity once you stop, and also has a bounce back if you scroll too high? I was trying to implement that. Posted at 2022-12-26 by @thyttan Ah, ok! So I guess you already found the code for E.showScroller. On line #23 and onward the function for handling drag events is coded. You can read about the drag event in the hardware reference. So using This tutorial is useful, and here is an example where I modified E.showScroller to work in discrete steps. Posted at 2023-01-06 by @gfwilliams
Yes, this is it - best bet is just to add a print statement to the drag handler so you can see how the values vary as you drag and then release Posted at 2023-04-02 by @thyttan Did you implement this, @KTibow? I'd be interested to try it out if you have it running 🙂 Posted at 2023-04-05 by KTibow nope, if you do that i would be interested too Posted at 2023-04-05 by @thyttan I probably won't 🙃 If I did I think I would end up using 'Swipe Menus' again anyway. But it would have been interesting to try it out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-12-26 by KTibow
Recently got a Bangle.js 2, and one minor thing that annoys me is that there's no smooth scrolling, so I wanted to implement it. I did some poking around and found the implementation for E.showScroller. However I can't find any way to tell when a touch ends. Could someone point me to how to do that, or describe why that's not possible?
Beta Was this translation helpful? Give feedback.
All reactions