Open aggressive-perfector opened 8 years ago
Is this cordova + what do you refer by "enabling software acceleration" - usually the hardware acceleration is enabled by default
In any case, the android performance isn't enough to render a stupid scroller smoothly, you have to scroll slower for the devices to keep up
Hi. I'm not using Cordova. I have an Android project with a single webview. This is how I enable the Software acceleration:
webview.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
that line also disables the hardware acceleration.
Anyway, I don't know how to make a slow scroll, since every time i try a light scroll with my fingers, the scroll is made with the same fast speed.
I forgot to add that if I disable the momentum, the blinking doesn't happen. But the great part of iscroll is the momentum, so I don't want to disable it.
@kaansoral , is there a way to configure iscroll to decrease the scroll speed in mobile?
I tried with the deceleration option, but that doesn't work.
Yes, you can manually modify the code and reduce the speed, I did it months ago, so I don't remember the exact details
I have momentum, but I think I capped it
One other disturbing thing that happens is, the page slows down, than a small scroll move from user turns into a high speed scroll while it shouldn't, the scroll hits the bottom, so capping the speed/trigger was a good idea too
TL;DR: I can't help with the exact details, but at least it's possible
I'm making a hybrid android app.
I'm using iScroll to handle the scrolling, but there is a weird bug in Android webview.
When the page is first loaded, if I scroll down, the elements of the page start to blink until the bottom of the page is reached.
After that, if I scroll up to the top, the blinking is not reported again.
It seems that once the bottom has been reached, iScroll does a cache of the page or something like that, because as I said, the page stops flickering.
I made a video to show this behavior:
https://www.youtube.com/watch?v=kPuxdUZ6RQk
This is the page I'm testing with:
This bug is not happening in the Android browser, only in the webview component.
I'm testing with Android 4.2.2 and 4.3.
If I enable the Software Acceleration, this problem only happens 10% of the times; but with this feature enabled, all my css transforms stop working smooth.
So I wonder if there is a way to avoid this problem without using the Software Acceleration. Maybe there is just something wrong with my css or the way I'm calling iScroll.
Thanks in advance.