angular-scrolly icon indicating copy to clipboard operation
angular-scrolly copied to clipboard

[question] Native scrolling

Open rtpm opened this issue 11 years ago • 6 comments

Andy, Have you considered enabling native webkit scrolling if such is detected on the device ? Something like overthrow.js library provides.

I'm just asking as I am aware that it's not what angular-scrolly was made for (pull to refresh for instance), so these features would not be available then.

rtpm avatar Aug 29 '13 17:08 rtpm

Overflow native scrolling is actually not GPU-accelerated (as of iOS6 and Android 4.2), and is slower than our fake scrolling on large lists. I know, crazy lol. So there is no advantage to using it.

ajoslin avatar Aug 29 '13 17:08 ajoslin

Someday soon I will get pull-to-refresh done ... but not focused on it right now.

ajoslin avatar Aug 29 '13 17:08 ajoslin

On my galaxy S (GT-9000) running android 2.3.6 using the builtuin browser scrolling is very laggy. I have to touch the screen.. wait a moment and then scroll. 1/10 scrolls actually works.

I mean... it lags on initiating the scroll / catching the scroll.

The phone is not busy while testing (no other cpu / memory consuming processes running).

Ps. the same applies to tiny.cc/ng-scrolly

rtpm avatar Sep 08 '13 17:09 rtpm

I just tested it on my Galaxy. You are right, it is pretty slow on http://ajoslin.github.io/angular-scrolly/demo.

However, the lag is not in starting the scroll but in just the screen following the finger. It does not follow the finger smoothly; instead it jerks around.

I'm not sure how I would fix this though ...

ajoslin avatar Sep 10 '13 12:09 ajoslin

I'd say that once scrolling is "attached to you finger" it works fine :) The problem is that it doesn't want to initiate the scroll on finger up/down swipe.

Maybe this is related to ng-click() (ngTouch) attached to on most of the screen. I've noticed that if there's only a pure text on the screen (no hyperlinks with ng-click attached), the scroll works better, and more scrolls are initiated on swiping up/down.

Using angularjs 1.2.0rc2

rtpm avatar Sep 10 '13 15:09 rtpm

Ok, I have an idea how to fix this, will look into it this week

ajoslin avatar Sep 10 '13 15:09 ajoslin