Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#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

http://jsfiddle.net/Uv6rv/2/ http://i.imgur.com/LExEn.png

http://jsfiddle.net/Uv6rv/3/ http://i.imgur.com/Thx51.png

Change History (5)

comment:1 Changed 7 years ago by dmethvin

Owner: set to anonymous
Status: newpending

iOS3? Where are you running this?

comment:2 Changed 7 years ago by mikesherov

Resolution: wontfix
Status: pendingclosed

Why is this pending? We know we removed the fallback offset function as we no longer support 100% iOS3.

comment:3 Changed 7 years ago by dmethvin

I just wondered where the OP found an iOS3. Maybe an original iPad?

comment:4 Changed 7 years ago by mikesherov

Sorry, I'm just in a bad mood today I guess :P

comment:5 Changed 6 years ago by sfornengo@…

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.