framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

ptr has no animation when the page is scrollable

Open lihongxun945 opened this issue 12 years ago • 5 comments

I have find this code in ptr: if (container[0].scrollHeight === container[0].offsetHeight || app.device.os !== 'ios') { useTranslate = true; }

if the page content is too long , then the container[0].scrollHeight !== container[0].offsetHeight, so there is no translate when I touch and pull down on the page.

lihongxun945 avatar Oct 16 '14 07:10 lihongxun945

Good to know OS version/device. Because as i see on kitchen sink everything is fine

nolimits4web avatar Oct 17 '14 12:10 nolimits4web

android, no translate when scrolling the page. e.g:

<div style="height: 2000px; overflow-y: scroll">
..
</div>

when scrolling this DIV, there is no animation on android...

hzdorian avatar Oct 26 '14 02:10 hzdorian

Still not sure what you mean. Maybe you also need to add:

<div style="height: 2000px; overflow-y: scroll; -webkit-overflow-scrolling: touch">
..
</div>

nolimits4web avatar Oct 28 '14 13:10 nolimits4web

Closing as seems to not actual

nolimits4web avatar Feb 06 '15 10:02 nolimits4web

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jun 26 '18 07:06 lock[bot]