This project is read-only.

very bad scrolling performance with handjs

Jan 29, 2014 at 12:41 PM
Edited Jan 29, 2014 at 12:42 PM

I have a site with a very large scroll

When using handjs i get a very poor scroll performance on devices (android and ipad).

the main problem is registering on the window the touchmove event... you are running a very complex logic there that is not needed when i am scrolling...

Is there a work around??

I just can think on a lite-handjs without all the pointerenter-pointerleav logic....
Feb 2, 2014 at 3:11 AM
Would you provide an actual example for me to test it? :)
Sep 8, 2014 at 6:50 PM

Just to back this up, I'm seeing the same issue where the performance degrades enormously when scrolling because of the code around the touchmove event. I tried removing that part of the code all together but unfortunately that does break some functionality that we need.

If you want an example, grab an iPad and go to, load some more pages (Show More button) and try to scroll up and down. You'll notice immediately that scrolling is "laggy" and sometimes completely sticky for a while. If you measure performance you'll notice that most of the CPU time goes into the javascript method that is related to touchmove.

Let me know if you need any help with this.

Sep 20, 2014 at 2:45 AM
Hi! Sorry for my late response.

Thank you for the example, I'll look into it.