@@ -347,14 +347,16 @@ private void EditorState_CursorActionChanged(object sender, EventArgs e)
347347 lastTileUnderCursor = null ;
348348 }
349349
350- public override void OnMouseScrolled ( )
350+ public override void OnMouseScrolled ( InputEventArgs inputEventArgs )
351351 {
352+ inputEventArgs . Handled = true ;
353+
352354 if ( Cursor . ScrollWheelValue > 0 )
353355 Camera . ZoomLevel += ZoomStep ;
354356 else
355357 Camera . ZoomLevel -= ZoomStep ;
356358
357- base . OnMouseScrolled ( ) ;
359+ base . OnMouseScrolled ( inputEventArgs ) ;
358360 }
359361
360362 public override void OnMouseOnControl ( )
@@ -448,9 +450,10 @@ public override void OnMouseEnter()
448450 base . OnMouseEnter ( ) ;
449451 }
450452
451- public override void OnMouseLeftDown ( )
453+ public override void OnMouseLeftDown ( InputEventArgs inputEventArgs )
452454 {
453- base . OnMouseLeftDown ( ) ;
455+ inputEventArgs . Handled = true ;
456+ base . OnMouseLeftDown ( inputEventArgs ) ;
454457 leftPressedDownOnControl = true ;
455458
456459 if ( CursorAction != null )
@@ -494,8 +497,10 @@ public override void OnMouseMove()
494497 }
495498 }
496499
497- public override void OnLeftClick ( )
500+ public override void OnLeftClick ( InputEventArgs inputEventArgs )
498501 {
502+ inputEventArgs . Handled = true ;
503+
499504 if ( tileUnderCursor != null && CursorAction != null )
500505 {
501506 CursorAction . LeftClick ( tileUnderCursor . CoordsToPoint ( ) ) ;
@@ -513,7 +518,7 @@ public override void OnLeftClick()
513518 }
514519 }
515520
516- base . OnLeftClick ( ) ;
521+ base . OnLeftClick ( inputEventArgs ) ;
517522 }
518523
519524 private void HandleDoubleClick ( )
@@ -540,16 +545,18 @@ private void HandleDoubleClick()
540545 }
541546 }
542547
543- public override void OnRightClick ( )
548+ public override void OnRightClick ( InputEventArgs inputEventArgs )
544549 {
550+ inputEventArgs . Handled = true ;
551+
545552 if ( CursorAction != null && ! isRightClickScrolling )
546553 {
547554 CursorAction = null ;
548555 }
549556
550557 isRightClickScrolling = false ;
551558
552- base . OnRightClick ( ) ;
559+ base . OnRightClick ( inputEventArgs ) ;
553560 }
554561
555562 private MapTile CalculateBestTileUnderCursor ( )
0 commit comments