I need to
disable the mouse wheel scrolling event for the grid, but
keeping the other scrolling events.
Some external functions are based on the scrolling event of the grid, so I need to keep the following code:
dataBound: function (args) {
var scroll = this.getScrollObject();
var scrollEvt = scroll.model.scroll;
//console.log(scrollEvt.source);
scroll.model.scroll = function (e) {
scrollEvt.apply(this, [e]);
if(e.source=='wheel'){
console.log('wheel scrolling', e);
// Disable only the scroll generated by the mouse wheel movements
e.cancel=true;
}
else{
console.log('Scrolling with ' + e.source);
//If the user scroll with button or thumb or by dragging the handler,
// I need to perform some operations based on the handle bar position.
}
}
}
but I don't want the grid to scroll on wheel movements.
I've tried to disable with javascript at DOM level but it doesn't work.
thanks!