public void OnScroll(PointerEventData eventData) { if (cef == null) { return; } Vector2Int pos = GetPointerPosition(eventData.position); cef.SendMouseWheelEvent(pos.x, pos.y, (int)eventData.scrollDelta.y * 10); }
private void PictureBox1_MouseWheel(object sender, MouseEventArgs e) { _controller.SendMouseWheelEvent(e.X, e.Y, e.Delta); }