Example #1
0
 internal void EndInteraction()
 {
     // Go back to the default handler for pan and zoom interaction
     mCurrentHandler = new PanZoomHandler(this);
     // Reset capture state when ending interaction
     if (mCaptured)
     {
         ReleaseMouseCapture();
         mCaptured = false;
     }
     // Also clear the preview that maybe was set up by the interaction handler
     ClearPreview();
     mNodeDragPreviews.Clear();
     InvalidateNodesAndConnectionsPanels();
 }
Example #2
0
 internal void BeginInteraction(IEditorInteractionHandler newHandler)
 {
     mCurrentHandler = newHandler;
 }