Is there a way to trigger a scroll wheel event with an arbitrary delta. Just like jQuery does with 'click' like:
$('#selector').trigger('click');
I need something like that just with an scrollwheel like:
$('#selector').trigger('DOMMouseScroll',{delta: -650});
//or mousewheel for other browsers
I can't do anything like 'fake it' with css trickery, I need to trigger the actual native (or as close as possible) event.
Thankyou!
You can use the jquery scroll event and on call back u can do ur math. Please find the code snipet usefull.
You need to use jQuery.Event For example:
Check more here: http://api.jquery.com/category/events/event-object/
Have you tried this? http://jquerytools.org/documentation/toolbox/mousewheel.html A plugin to "take control of the mousewheel" :)