Skip to main content

Bug Tracker

Side navigation

#12709 closed bug (wontfix)

Opened October 11, 2012 09:03PM UTC

Closed October 11, 2012 11:38PM UTC

Last modified May 01, 2013 09:10AM UTC

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

Attachments (0)
Change History (5)

Changed October 11, 2012 10:10PM UTC by dmethvin comment:1

owner: → anonymous
status: newpending

iOS3? Where are you running this?

Changed October 11, 2012 11:38PM UTC by mikesherov comment:2

resolution: → wontfix
status: pendingclosed

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

Changed October 11, 2012 11:48PM UTC by dmethvin comment:3

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

Changed October 12, 2012 12:22AM UTC by mikesherov comment:4

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

Changed May 01, 2013 09:10AM UTC by sfornengo@gmail.com comment:5

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);