public void SetZoomFactor(float zoomFactor) { zoomFactor = CCMathHelper.Clamp(zoomFactor, MinZoomFactor, MaxZoomFactor); ZoomFactor = zoomFactor; var currentWidth = StartVisibleArea.Width / zoomFactor; var currentHeight = StartVisibleArea.Height / zoomFactor; OrthographicViewSizeWorldspace = new CCSize(currentWidth, currentHeight); ZoomUpdated?.Invoke(this, ZoomFactor); }