private void Panel_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Middle) { OnCameraScroll?.Invoke(this, new CameraScrollArgs(new Vector2(e.Location.X, e.Location.Y))); } }
public void OnScroll(PointerEventData eventData) { onCameraScroll?.Invoke(eventData.scrollDelta.y > 0 ? 1 : -1); }