#12709 closed bug (wontfix)
The offset function is wrong
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
offset is wrong on mobile devices such as Safari on iOS3 (and probably newer) take a look at the following fiddles and screenshots
http://jsfiddle.net/Uv6rv/1/ http://i.imgur.com/4HUKg.png
Change History (5)
comment:1 Changed 10 years ago by
Owner: | set to anonymous |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | pending → closed |
Why is this pending? We know we removed the fallback offset function as we no longer support 100% iOS3.
comment:3 Changed 10 years ago by
I just wondered where the OP found an iOS3. Maybe an original iPad?
comment:5 Changed 10 years ago by
offset is wrong on chrome 25 / android 4.1.1 and need a fix:
(function($){
$.fn.offsetOld = $.fn.offset; $.fn.offset = function(){
var result = this.offsetOld(); result.top -= window.scrollY; result.left -= window.scrollX; return result;
};
})(jQuery);
Note: See
TracTickets for help on using
tickets.
iOS3? Where are you running this?