Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12074 closed bug (invalid)

scroll Event not working with .on()

Reported by: jatinder.assi@… 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/

Change History (2)

comment:1 Changed 7 years ago by dmethvin

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

comment:2 Changed 7 years ago by Rick Waldron

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

Note: See TracTickets for help on using tickets.