private void ZoomBorder_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { zoomBorder.Focus(); if (_projectEditor.IsLeftUpAvailable()) { var p = e.GetPosition(drawableControl); _projectEditor.LeftUp(p.X, p.Y); } }
private void ZoomBorder_PointerReleased(object sender, PointerReleasedEventArgs e) { var p = _zoomBorder.FixInvalidPointPosition(e.GetPosition(_containerControl)); if (e.MouseButton == MouseButton.Left) { if (_projectEditor.IsLeftUpAvailable()) { _projectEditor.LeftUp(p.X, p.Y); } } if (e.MouseButton == MouseButton.Right) { if (_projectEditor.IsRightUpAvailable()) { _projectEditor.RightUp(p.X, p.Y); } } }