Avoid zoom using Ctrl + Mouse Wheel


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…


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:
1 Like