Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12659 closed bug (cantfix)

scrollLeft() doesn't work in Android browser

Reported by: dr.lofstrand@… Owned by: dr.lofstrand@…
Priority: low Milestone: None
Component: offset Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

scrollLeft() doesn't scroll in Android. You can get the value and it actually updates if you change it, but the element it self doesn't scroll. I even tried your example-page in the api section and the result is the same. It works in IE, Chrome, FF, iPhone and iPad but not in Android. I've tried it on SGS2 and SGS3 (default browsers).

jQuery versions I've tried: 1.7.0, 1.7.1 and 1.8.2

Change History (7)

comment:1 Changed 7 years ago by dmethvin

Owner: set to dr.lofstrand@…
Status: newpending

Please provide a test case in jsfiddle.net.

comment:2 Changed 7 years ago by dr.lofstrand@…

Status: pendingnew

comment:3 Changed 7 years ago by anonymous

Hey there, I had the same Issue. Got it solved by removing this from my code:

document.addEventListener('touchmove', function(e){ e.preventDefault(); });

Maybe it helps you, too.

comment:4 Changed 7 years ago by markus@…

I can confirm this with Android 4.0.4. It exactly behaves like OP described.

comment:5 in reply to:  3 Changed 7 years ago by markus@…

Replying to anonymous:

Hey there, I had the same Issue. Got it solved by removing this from my code:

document.addEventListener('touchmove', function(e){ e.preventDefault(); });

Maybe it helps you, too.

Removing this and any other touch-event-related code doesn't help.

comment:6 Changed 7 years ago by markus@…

The pure Javascript property scrollLeft behaves like that too on Android 4.0.4

comment:7 Changed 7 years ago by mikesherov

Component: unfiledoffset
Priority: undecidedlow
Resolution: cantfix
Status: newclosed

We can't fix this, but we've reported it up to Android: http://code.google.com/p/android/issues/detail?id=38505&thanks=38505&ts=1350315570

Note: See TracTickets for help on using tickets.