git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1101 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -78,6 +78,8 @@ namespace ShpViewer
|
|||||||
|
|
||||||
vx = mapViewControl1.XScroll;
|
vx = mapViewControl1.XScroll;
|
||||||
vy = mapViewControl1.YScroll;
|
vy = mapViewControl1.YScroll;
|
||||||
|
|
||||||
|
mapViewControl1.Cursor = Cursors.NoMove2D;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -85,8 +87,8 @@ namespace ShpViewer
|
|||||||
{
|
{
|
||||||
if (e.Button == MouseButtons.Right)
|
if (e.Button == MouseButtons.Right)
|
||||||
{
|
{
|
||||||
int dx = e.X - ux;
|
int dx = ux - e.X;
|
||||||
int dy = e.Y - uy;
|
int dy = uy - e.Y;
|
||||||
|
|
||||||
mapViewControl1.XScroll = vx + dx / 24;
|
mapViewControl1.XScroll = vx + dx / 24;
|
||||||
mapViewControl1.YScroll = vy + dy / 24;
|
mapViewControl1.YScroll = vy + dy / 24;
|
||||||
@@ -95,6 +97,8 @@ namespace ShpViewer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mapViewControl1.MouseUp += delegate { mapViewControl1.Cursor = Cursors.Default; };
|
||||||
|
|
||||||
mapViewControl1.MouseClick += delegate( object sender, MouseEventArgs e )
|
mapViewControl1.MouseClick += delegate( object sender, MouseEventArgs e )
|
||||||
{
|
{
|
||||||
if( e.Button == MouseButtons.Left )
|
if( e.Button == MouseButtons.Left )
|
||||||
|
|||||||
Reference in New Issue
Block a user