Mouse wheel
Metro 4 contains module to interact with mose wheel.
About
Metro 4 is ready to interact with mouse wheel
and include a latest jQuery Mouse wheel plugin.
You do not need to include this plug-in separately to use the mouse wheel event.
To use this event:
// using on
$('#my_elem').on('mousewheel', function(event) {
console.log(event.deltaX, event.deltaY, event.deltaFactor);
});
$('#my_elem').on('mousewheel', 'child-element-selector', function(event) {
console.log(event.deltaX, event.deltaY, event.deltaFactor);
});
// using the event helper
$('#my_elem').mousewheel(function(event) {
console.log(event.deltaX, event.deltaY, event.deltaFactor);
});