mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 05:35:34 +08:00
switch to dragging cursor on left mouse button down.
This commit is contained in:
parent
aeccf3a545
commit
37a1a4311c
@ -105,6 +105,10 @@ namespace GARbro.GUI
|
||||
VerticalOffset = scroller.VerticalOffset,
|
||||
Point = e.GetPosition(scroller),
|
||||
};
|
||||
|
||||
var cursor = target.GetValue (DraggingCursorProperty) as Cursor;
|
||||
if (cursor != null)
|
||||
Mouse.OverrideCursor = cursor;
|
||||
}
|
||||
|
||||
static void target_Loaded(object sender, RoutedEventArgs e)
|
||||
@ -156,9 +160,6 @@ namespace GARbro.GUI
|
||||
if (System.Math.Abs(dy) > 5 || System.Math.Abs(dx) > 5)
|
||||
{
|
||||
target.CaptureMouse();
|
||||
var cursor = target.GetValue (DraggingCursorProperty) as Cursor;
|
||||
if (cursor != null)
|
||||
Mouse.OverrideCursor = cursor;
|
||||
}
|
||||
scroller.ScrollToHorizontalOffset(capture.HorizontalOffset - dx);
|
||||
scroller.ScrollToVerticalOffset(capture.VerticalOffset - dy);
|
||||
|
Loading…
Reference in New Issue
Block a user