Hi,
I’m doing zoom In/Out using the mouse wheel.
Is there a way to do disable this functionality while pressing Ctrl? I want to save the original mouse wheel behavior of the browser…
Thanks!
Hi,
I’m doing zoom In/Out using the mouse wheel.
Is there a way to do disable this functionality while pressing Ctrl? I want to save the original mouse wheel behavior of the browser…
Thanks!
This should work:
myDiagram.toolManager.standardMouseWheel = function() {
var diagram = this.diagram;
var e = diagram.lastInput;
if (e.control) return; // do not do the default functionality
// otherwise, do default:
go.ToolManager.prototype.standardMouseWheel.call(this);
};