Fix removing things in the editor when stopping standard-scrolling with RMB
The cause for this was that the `HandleMouseInput` method of the `EditorViewPortController` ran before the one from the regular `ViewPortController`, thus intercepting the button press. Switching the order of the two around fixes that, but introduced another problem, namely that the tooltips stopped working. Switching the order meant that the `ViewPortController` laid "on top" of the `EditorViewPortController`, so the latter didn't receive the `MouseEntered` event anymore. Setting the `IgnoreMouseOver` flag in the `ViewPortController` fixes this.
This commit is contained in:
@@ -203,9 +203,6 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Logic: LoadIngamePerfLogic, MapEditorLogic
|
||||
Children:
|
||||
Container@PERF_ROOT:
|
||||
ViewportController:
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
EditorViewportController@MAP_EDITOR:
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
@@ -218,6 +215,10 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Visible: false
|
||||
ActorPreview@DRAG_ACTOR_PREVIEW:
|
||||
Visible: false
|
||||
ViewportController:
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
IgnoreMouseOver: True
|
||||
Background@RADAR_BG:
|
||||
X: WINDOW_RIGHT-255
|
||||
Y: 5
|
||||
|
||||
@@ -194,12 +194,6 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Logic: LoadIngamePerfLogic, MapEditorLogic
|
||||
Children:
|
||||
Container@PERF_ROOT:
|
||||
ViewportController:
|
||||
X: 0
|
||||
Y: 0
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
EditorViewportController@MAP_EDITOR:
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
@@ -212,6 +206,10 @@ Container@EDITOR_WORLD_ROOT:
|
||||
Visible: false
|
||||
Sprite@DRAG_LAYER_PREVIEW:
|
||||
Visible: false
|
||||
ViewportController:
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
IgnoreMouseOver: True
|
||||
Background@RADAR_BG:
|
||||
X: WINDOW_RIGHT-255
|
||||
Y: 5
|
||||
|
||||
Reference in New Issue
Block a user