private void SetZoomSpeed(int zoomSpeed) { if (zoomSpeed == ZoomSpeed) { return; } bool?zoomDirection = zoomSpeed == 0 ? default(bool?) : zoomSpeed > 0; controller?.ContinuousZoom(zoomDirection, AbsSpeed(zoomSpeed), default); ZoomSpeed = zoomSpeed; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(ZoomSpeed))); }
private void ContinuousZoomIn(object sender, MouseButtonEventArgs e) => controller?.ContinuousZoom(true, (byte)zoomSpeed.Value, default);