Use mouse wheel to zoom over Overview

We have a diagram that is observed by an Overview object. We can put focus on the diagram and use the mouse wheel to zoom in and out of the diagram. We have had a request to do the same thing from the Overview. Is there anyway to make it so the user can select the Overview and use the mouse wheel to change the zoom on the diagram?

Thanks for any ideas.

You could do something like this:

myOverview.toolManager.standardMouseWheel = function() {
  var observed  = myOverview.observed;
  if (observed === null) return;
  var cmd = observed.commandHandler;

  var e = myOverview.lastInput;
  var delta = e.delta;
  if (delta === 0) return;

  if ((delta > 0 ? cmd.canIncreaseZoom() : cmd.canDecreaseZoom())) {
    if (delta > 0)
      cmd.increaseZoom();
    else
      cmd.decreaseZoom();
    e.bubbles = false;
  }

} // end custom standardMouseWheel

Let me know if that works for you.

This worked, thanks.