Bug Tracker

Opened 10 years ago

Closed 10 years ago

#14119 closed bug (notabug)

Resize Event firing when scrolling - iOS 6.1.3

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:


When jQuery is loaded and there is a fixed element on the page, when you scroll, the resize event fires. This happens on iOS 6.1.3 (10B329) and possibly below, but does not happen on iOS 7. It does not matter if you use the $().resize or window.onresize. If you unload jQuery the event does not fire on scroll.

See: http://jsbin.com/otaden/1

Edit this test case by removing the jquery library and try it again to see the difference.

This becomes problematic when you have a fare amount of code that runs on resize, as it constantly runs as the user scrolls. Using the orientation change event is not a viable option when using jQuery Mobile if you want to detect and set element dimensions , due to the timing issue.

Change History (2)

comment:1 Changed 10 years ago by anonymous

This is a Bug in iOS 6 Safari and got nothing to do with jQuery. See edited example here (no jQuery): http://jsbin.com/otaden/2/

Your above example simply doesn't output anything onResize without jQuery because your output-function relied on jQuery.

comment:2 Changed 10 years ago by timmywil

Resolution: notabug
Status: newclosed

Thank you for looking into it.

Note: See TracTickets for help on using tickets.