A few small UI tweaks so the surface editor can be finalized now

This commit is contained in:
Robert committed 2019-10-21 17:24:42 +02:00
1 parent 6a07d194e2
commit 04c5aa40fc
3 files changed
+21 -9

No files matched your search

@@ -25,7 +25,7 @@ namespace Artemis.UI.ViewModels
public double PanX { get; set; }
public double PanY { get; set; }
public Rect BackgroundViewport => new Rect(PanX, PanY, 20 * Zoom, 20 * Zoom);
public Rect BackgroundViewport => new Rect(PanX, PanY, 20, 20);
public void ProcessMouseScroll(object sender, MouseWheelEventArgs e)
{
@@ -228,18 +228,19 @@ namespace Artemis.UI.ViewModels.Screens
_mouseDragStartPoint = position;
}
// While dragging always show an arrow to avoid cursor flicker
Mouse.OverrideCursor = Cursors.Arrow;
// While dragging always show a hand to avoid cursor flicker
if (_mouseDragStatus == MouseDragStatus.Dragging)
Mouse.OverrideCursor = Cursors.Hand;
else
Mouse.OverrideCursor = Cursors.Arrow;
// Any time dragging starts, start with a new rect
SelectionRectangle.Rect = new Rect();
}
private void StopMouseDrag(Point position)
{
if (_mouseDragStatus == MouseDragStatus.Dragging)
{
}
else
if (_mouseDragStatus != MouseDragStatus.Dragging)
{
var selectedRect = new Rect(_mouseDragStartPoint, position);
foreach (var device in Devices)