Пример #1
0
 public override bool OnMouseWheel(MouseWheelEditorEventArgs args)
 {
     if (mIsRightButtonDown)
     {
         var isUndoNotRedo = (args.Delta < 0);
         AttachedProps.GetCommandManager(nodeEditor).StartCommand(new UndoRedoCommandToken(isUndoNotRedo));
     }
     else
     {
         if (args.Delta > 0)
         {
             nodeEditor.ZoomIn();
         }
         else
         {
             nodeEditor.ZoomOut();
         }
     }
     return(true);
 }
 public virtual bool OnMouseWheel(MouseWheelEditorEventArgs args)
 {
     return(false);
 }