Skip to main content

Bug Tracker

Side navigation

#12074 closed bug (invalid)

Opened July 12, 2012 08:10PM UTC

Closed July 12, 2012 08:14PM UTC

Last modified July 12, 2012 08:29PM UTC

scroll Event not working with .on()

Reported by: jatinder.assi@demandmedia.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

Hello,

The scroll event does not work when attached using the .on() with latest jQuery 1.7.2.

Here is a jsFiddle: http://jsfiddle.net/jtassi/q5cQv/1/

But it works when attached using .bind(), here is a working jsFiddle: http://jsfiddle.net/jtassi/q5cQv/2/

Attachments (0)
Change History (2)

Changed July 12, 2012 08:14PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Scroll events only bubble from document to window, all other scroll events do not bubble.

http://www.w3.org/TR/DOM-Level-3-Events/#event-type-scroll

Changed July 12, 2012 08:29PM UTC by rwaldron comment:2

Also... this seems to work fine for me: http://jsfiddle.net/rwaldron/5pyFh/