updated custom event dispatch to handle deprecated event handling (issue #5453)

modified event dispatching which was impacting proper dispatching
of scrolling events under jquery1.9.0