Article 16
Replying to edwincheese: +1 Same issue as reported in JQuery forum: http://forum.jquery.com/topic/offset-returns-incorrect-values-in-ipad
View Articlestatus, milestone changed; resolution set
status changed from open to closedresolution set to fixedmilestone changed from 1.next to 1.9 This works in latest http://jsbin.com/ofoqoc/6/edit
View ArticleArticle 14
Reduced Test case that shows the bug in IOS 4.0.2 and others.http://jsbin.com/ofoqoc/5
View ArticleArticle 12
This actually occurs on the desktop as well... test a mobile web-app in Chrome by scrolling and then clicking on your target -- gets the same result as mobile safari.
View Articlepriority changed; milestone set
priority changed from undecided to highmilestone set to 1.next
View ArticleArticle 10
For all those using the workaround function hack, you *might* want to test result for null before you start subtracting. (I had some poorly behaved code that happens to call offset and get a null. The...
View ArticleArticle 8
I've found that calculating the offset with straight javascript seems to work. Test page:http://mark.antsclimbtree.com/files/jquery.ipad-test.php Clicking the yellow square shows the top and left as...
View ArticleArticle 7
Just thought I'd add my own little detection JS to the mix. It's a lot smaller than others but relies completely on the user agent string:https://gist.github.com/661844#comments
View ArticleArticle 5
rty I've added an extra test vs iOS version since the bug occurs only on 3.2-4.0.x, 4.1 is not affected. Feel free to add the following test condition to your snipplet: /; CPU.*OS...
View ArticleArticle 3
Small improvement to previous for old safari versions compatibility:http://gist.github.com/gists/434145
View ArticleArticle 2
thanks jake, here's my (dirty) take on the override:http://gist.github.com/431639 what would be a clean solution? probably adding an absolutely positioned element to an iframe, scrolling it and then...
View ArticleArticle 1
my workaround is $.browser.mobileSafari = /webkit.*mobile/i.test(navigator.userAgent) $.fn.cssKluge=function(css){ if ($.browser.mobileSafari){ css.top-=window.scrollY css.left-=window.scrollX }...
View ArticleArticle 0
+1 Same issue as reported in JQuery forum: http://forum.jquery.com/topic/offset-returns-incorrect-values-in-ipad
View Article
More Pages to Explore .....