Opened 11 years ago
Closed 11 years ago
#11824 closed bug (cantfix)
scroll event not working in new element
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
after an ajax request creating for example 2 elements (test1 parent of test2) $(document).ready(function(){
$("#test1").on("scroll","#test2",function(){
alert('qwerty');
});
});
Change History (3)
comment:1 Changed 11 years ago by
comment:3 Changed 11 years ago by
Resolution: | → cantfix |
---|---|
Status: | new → closed |
The scroll event does not bubble so it cannot be used with delegation. I assume the W3C reasoned that if it did, you would see the bubbled event on window and think the window had scrolled.
Note: See
TracTickets for help on using
tickets.
just to mention that the "click" event works so only scroll has the problem