Hi,
Ctrl + Wheel Mouse causes the diagram to zoom in/out.
I want to disable this and only allow the user to use the toolbar buttons that control this.
I have tried the following:
$(document).ready(function () {
var divDiagram = $('div[id$=divDiagram]');
divDiagram.bind('mousewheel wheel', function (e) {
if (ctrlKeyPressed === 'yes') {
console.log('In wheel event handler - Ctrl key pressed');
e.preventDefault();
return false; // Have tried true as well as commenting this statement out altogether
}
});
});
The diagram control is embedded within a div (divDiagram).
I do see the message above in the console, so I know I'm getting into this function, but the diagram continues to zoom.
Any suggestions on how to disable Ctrl + Wheel Mouse.
Thanks
Jim