Exemplo n.º 1
0
        private void Element_MouseMove(object sender, MouseEventArgs args)
        {
            var buttons  = GetMouseButtons(args);
            var id       = buttons & FirstMouseButton;
            var position = GetPosition(args);

            PointerMove?.Invoke(this, new PointerEventArgs(CurrentTime, position, PointerId.FromMouse(id), buttons));
        }
Exemplo n.º 2
0
 protected virtual void OnPointerMove(object sender, PointerMoveEventArgs e)
 {
     PointerMove?.Invoke(sender, e);
 }
 public void OnDrag(PointerEventData eventData)
 {
     PointerMove?.Invoke(eventData.position);
 }