溢出:滚动在Android和原生滚动,-webkit-溢出的滚动元素:触摸 [英] Overflow:scroll elements on android and native scrolling, -webkit-overflow-scrolling: touch
问题描述
..这个项目,我要烧我的大脑在某些时候。 10小时后仍然一无所获这一点。
..with this project I am going to burn my brains at some point. After 10 hours still nothing on this.
没有在Android股票浏览器(目前正在测试的S3迷你的Android 4.1.2)中溢出的元素。任何光滑度
There isn't any smoothness in the Android stock browser (currently testing on s3 mini, android 4.1.2) in overflown elements.
所以,我在这里读这篇文章: <一href="http://stackoverflow.com/questions/15906508/chrome-browser-for-android-no-longer-supports-webkit-overflow-scrolling-is-the">Chrome浏览器为Android不再支持-webkit-溢出滚动?是否有别的选择吗?
So, I read this article here: Chrome Browser for Android no longer supports -webkit-overflow-scrolling? Is there an alternative?
...这篇文章说,你必须严格使用的z-index:在溢出的元素,以打开快速滚动又名天然加速滚动的Android设备上的
...the article says that you strictly have to use z-index:0 in overflown elements to enable 'fast scrolling' aka native accelerated scrolling on android devices.
根据上述,并通过添加translateZ:(0)和-webkit-translateZ:(0)(这是我花了几个小时才能实现!)我设法得到本地滚动的Chrome浏览器,但对于生活我不能让它的股票Android浏览器的工作。
Following the above, and by adding translateZ:(0) and -webkit-translateZ:(0) (this has took me several hours to realize!) I have managed to get native scrolling for Chrome, but for the life of me can't get it to work in the stock Android browser.
Android的股票浏览器的缘故,我的问题一百万,到目前为止,它只是无法停止。任何帮助AP preciated!关我去睡觉,我希望得到一些...:/
Android stock browser has caused me a million of issues so far, and it just can't stop. Any help is appreciated! Off I go to sleep, hopefully I get some... :/
推荐答案
我会看看 https://famo.us / 或iScroll.js
I would take a look at https://famo.us/ or iScroll.js
这篇关于溢出:滚动在Android和原生滚动,-webkit-溢出的滚动元素:触摸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!