How to create a smooth scrolling for many objects? #5210
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2022-09-21 by @gfwilliams I'm afraid that's what you'd expect - there's not enough memory to store a potentially huge offscreen image, so once you scroll off the screen, it's gone. I guess there are two options:
Posted at 2022-09-24 by user148386 ok good to know, thank you for the answer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-09-17 by user148386
Hi evereyone,
i currently try to create a scrolling, where i can scroll the screen up and down with my finger. I found the g.scroll(x,y) method, this however deletes every pixel that leaves the screen.
I tried to use the drag event to move the position of my objects to draw every time a drag event is being emitted. This however causes jumps between each render, if there are more objects that need a redraw.
Is there a way to have a smooth scrolling with many objects?
An code example with both scrolling methods. You can change the scroll method with the press of the hardware button.
Beta Was this translation helpful? Give feedback.
All reactions