overscroll icon indicating copy to clipboard operation
overscroll copied to clipboard

scroll always back to top in some android devices

Open tobatha opened this issue 10 years ago • 5 comments

When done setup the div with overscroll, the content is a lot longer than the div size, so whenever trying to keep scrolling to see more content with a second dragging, it'll automatically scroll Top, and then response to the dragging, very frustrating

Happened in some android devices

Any idea why ? Thanks in advance

tobatha avatar Jun 20 '15 05:06 tobatha

Here the same problem. Android version 5.0.2 with android chrome borwser. ( tested with demo page http://azoff.github.io/overscroll/ )

Daijobou avatar Oct 01 '15 15:10 Daijobou

Happens on Android 5.1.1 as well

gpetrioli avatar Oct 12 '15 21:10 gpetrioli

I had the same issue. I could fix it with following workaround in jquery.overscroll.js, starting on line 176

Replace

position.x = event.pageX;
position.y = event.pageY;

with

if (event.type === 'touchstart') {
        position.x = event.originalEvent.changedTouches[0].pageX;
        position.y = event.originalEvent.changedTouches[0].pageY;
} else {
        position.x = event.pageX;
        position.y = event.pageY;
}

Seems to work on Android and iOS.

Hope that helps.

villamarianne avatar Nov 18 '15 13:11 villamarianne

dude! finally a hero comes to the rescue~ thanks a lot!

tobatha avatar Nov 19 '15 03:11 tobatha

nice one bruuuuuuuuuu. thanks alot

Puvadon avatar Oct 12 '17 04:10 Puvadon