Skip to main content

Bug Tracker

Side navigation

#14119 closed bug (notabug)

Opened July 10, 2013 01:58PM UTC

Closed July 10, 2013 04:06PM UTC

Resize Event firing when scrolling - iOS 6.1.3

Reported by: 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.


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.

Attachments (0)
Change History (2)

Changed July 10, 2013 03:54PM UTC by anonymous comment:1

This is a Bug in iOS 6 Safari and got nothing to do with jQuery.

See edited example here (no jQuery):

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

Changed July 10, 2013 04:06PM UTC by timmywil comment:2

resolution: → notabug
status: newclosed

Thank you for looking into it.