mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:36:30 +00:00
small improvements
This commit is contained in:
@@ -346,6 +346,7 @@ public class CanvasEditor : Canvas
|
||||
_lastPos = e.GetPosition(this);
|
||||
_curRec = (Rectangle)sender;
|
||||
_curAnn = (DetectionControl)((Grid)_curRec.Parent).Parent;
|
||||
(sender as UIElement)?.CaptureMouse();
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ public class DetectionControl : Border
|
||||
|
||||
private readonly Grid _grid;
|
||||
private readonly DetectionLabelPanel _detectionLabelPanel;
|
||||
//private readonly Label _detectionLabel;
|
||||
public readonly Canvas DetectionLabelContainer;
|
||||
|
||||
public TimeSpan Time { get; set; }
|
||||
@@ -154,6 +153,7 @@ public class DetectionControl : Border
|
||||
Name = name,
|
||||
};
|
||||
rect.MouseDown += (sender, args) => _resizeStart(sender, args);
|
||||
rect.MouseUp += (sender, args) => { (sender as UIElement)?.ReleaseMouseCapture(); };
|
||||
return rect;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user