Short version: This works
$(document).on("click",".Container",function(){})
This does not:
$(document).on("scroll",".Container",function(){})
Long version: I'm sorry but posting a code snippet isn't feasible as it's a complex app-like interface but I'll try to explain the issue to the best of my abilities:
- Mobile responsive website that loads different interfaces depending on screen real-estate.
- Smallest interface composed of 3 parts - navigation at the top, search at the bottom and content in the middle.
- Content is mostly loaded during use and not at page load.
- I need to trigger a function when the content is scrolled, both up and down and on the fly not just past a certain point.
- I can still scroll, it just doesn't trigger as an event.
- I've tried everything I've found to no avail, from my short experience and what I've been reading I think it might have to do with how scroll doesn't bubble up the same as click, but I have no idea what I should do or try with that information.
- While it doesn't seem to influence my problem (removing it doesn't solve the issue) I should disclose that I'm using hammer.js to simulate touch events as it might influence the solution.
Thanks in advance for all the help.
Beyond this point I'll edit with suggestions that didn't work--