Beispiel #1
0
        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);
        }
Beispiel #2
0
 private void PictureBox1_MouseWheel(object sender, MouseEventArgs e)
 {
     _controller.SendMouseWheelEvent(e.X, e.Y, e.Delta);
 }