From dc64b74ceb3fe86a67eee952a1cd712787f50e1d Mon Sep 17 00:00:00 2001 From: chrisf Date: Sat, 14 Jul 2007 07:18:39 +0000 Subject: [PATCH] git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1229 993157c7-ee19-0410-b2c4-bb4e9862e678 --- OpenRa.Game/MainWindow.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/OpenRa.Game/MainWindow.cs b/OpenRa.Game/MainWindow.cs index c670650938..607fb29df1 100644 --- a/OpenRa.Game/MainWindow.cs +++ b/OpenRa.Game/MainWindow.cs @@ -89,13 +89,12 @@ namespace OpenRa.Game { base.OnMouseMove(e); - if (e.Button == 0) - return; - - float2 p = new float2(e.Location); - - viewport.Scroll(lastPos - p); - lastPos = p; + if (e.Button != 0) + { + float2 p = new float2(e.Location); + viewport.Scroll(lastPos - p); + lastPos = p; + } } void Frame()