Exemplo n.º 1
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            if (browser != null)
            {
                var point     = e.GetPosition(this);
                var modifiers = e.GetModifiers();

                browser.GetHost().SendMouseMoveEvent((int)point.X, (int)point.Y, false, modifiers);
            }
        }
Exemplo n.º 2
0
        protected override void OnMouseLeave(MouseEventArgs e)
        {
            if (browser != null)
            {
                var modifiers = e.GetModifiers();

                browser.GetHost().SendMouseMoveEvent(-1, -1, true, modifiers);

                ((IWebBrowserInternal)this).SetTooltipText(null);
            }
        }
Exemplo n.º 3
0
        protected override void OnMouseLeave(MouseEventArgs e)
        {
            e.Handled = true;

            var browser   = GetBrowser();
            var modifiers = e.GetModifiers();
            var point     = e.GetPosition(this);

            if (e.LeftButton == MouseButtonState.Pressed)
            {
                browser.GetHost().SendMouseClickEvent((int)point.X, (int)point.Y, MouseButtonType.Left, mouseUp: true, clickCount: 1, modifiers: modifiers);
            }

            browser.GetHost().SendMouseMoveEvent((int)point.X, (int)point.Y, true, modifiers);

            base.OnMouseLeave(e);
        }