Opened 10 years ago
Closed 10 years ago
#12659 closed bug (cantfix)
scrollLeft() doesn't work in Android browser
Reported by: | Owned by: | ||
---|---|---|---|
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 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:3 follow-up: 5 Changed 10 years ago by
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 10 years ago by
I can confirm this with Android 4.0.4. It exactly behaves like OP described.
comment:5 Changed 10 years ago by
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 10 years ago by
The pure Javascript property scrollLeft behaves like that too on Android 4.0.4
comment:7 Changed 10 years ago by
Component: | unfiled → offset |
---|---|
Priority: | undecided → low |
Resolution: | → cantfix |
Status: | new → closed |
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
Please provide a test case in jsfiddle.net.