Example #1
0
        public void OnMouseDown(MouseEvent e)
        {
            Point       position = new Point(e.PageX, e.PageY);
            MouseButton button   = converter.ConvertBackMouseButton(e.Button);

            mouseDownHandled = ProcessMouseEvent(new RawMouseButtonEventArgs(button, MouseButtonState.Pressed, position, GetTimestamp()));

            if (mouseDownHandled || MouseDevice.CaptureTarget != null)
            {
                e.PreventDefault();
            }
        }