HTML-GL icon indicating copy to clipboard operation
HTML-GL copied to clipboard

Scrolling is a bit janky sometimes

Open PixelsCommander opened this issue 9 years ago • 3 comments

Scrolling is a bit janky sometimes, could be more smooth. May be interpolation? Should be investigated.

PixelsCommander avatar Apr 03 '15 16:04 PixelsCommander

I am keen to help out here but need to know where to begin. ANy pointers. I wana adopt it but want to make sure the scrolling

saniyusuf avatar Jun 10 '15 09:06 saniyusuf

Cool

I ll try to show you a possible way to go for investigating and fixing this.

What we need first of all is to clearly understand why this happening. Is it a small frequency or just some in-library bug?

For investigating this it is nice to put some console.llog into src/gl-context.js onscroll listener and observe does it correlate with visual janks or not.

If the reason for having janks is low onscroll events frequency we may use smooth interpolation from scroll position A to scroll position B instead of switching immediately.

Do not hesitate to ask or ping me in skype lp_funky if needed.

PixelsCommander avatar Jun 10 '15 11:06 PixelsCommander

Possible improvement there is to use touch events instead of scrolling events

PixelsCommander avatar Sep 04 '16 09:09 PixelsCommander