only change editor brushes on mouseup
let other uses of the right mouse button bubble up
This commit is contained in:
@@ -64,8 +64,13 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
|
||||
if (mi.Button == MouseButton.Right)
|
||||
{
|
||||
editorWidget.ClearBrush();
|
||||
return true;
|
||||
if (mi.Event == MouseInputEvent.Up)
|
||||
{
|
||||
editorWidget.ClearBrush();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
var cell = worldRenderer.Viewport.ViewToWorld(mi.Location);
|
||||
|
||||
Reference in New Issue
Block a user