joseph / Monocle

A silky, tactile browser-based ebook JavaScript library.
http://monocle.inventivelabs.com.au
MIT License
743 stars 200 forks source link

scroll problem on webapp #251

Open spacewoox opened 9 years ago

spacewoox commented 9 years ago

Hi, I am developping a webapp (an epub reader) and I encoutered a problem on devices running Android 4.1 (samsung galaxy s3 mini) when I attempt to scroll on a zooomed content. ( a custom zoom btw ) What I noticed is that the element I drag doesn't follow the finger as it should but move faster and faster until it go ahead ! To fix that, I removed a css property on Monocle/src/core/styles.js at line 110 : "-webkit-transform: translate3d(0, 0, 0);" and it works well now but I don't know why. Maybe someone can tell me what this property is used for and how it affect the scroll ? thanks.

AbhilashThomas commented 9 years ago

I am guessing it has to do something with the hardwareAccleration. Try to disable it in your AndroidManifest, put back the transform css and try/experiment.