git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1229 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-14 07:18:39 +00:00
parent 9f364cfdc7
commit dc64b74ceb

View File

@@ -89,13 +89,12 @@ namespace OpenRa.Game
{ {
base.OnMouseMove(e); base.OnMouseMove(e);
if (e.Button == 0) if (e.Button != 0)
return; {
float2 p = new float2(e.Location);
float2 p = new float2(e.Location); viewport.Scroll(lastPos - p);
lastPos = p;
viewport.Scroll(lastPos - p); }
lastPos = p;
} }
void Frame() void Frame()