Exemplo n.º 1
0
        protected override bool HandleLocalEvent(Dom.Event e, bool bubblePhase)
        {
            if (e.type == "mousedown")
            {
                // Get the scroll bar:
                HtmlScrollbarElement scroll = parentElement as HtmlScrollbarElement;

                // And scroll it:
                scroll.ScrollBy(IsStart?-1:1);
            }

            // Handle locally:
            return(base.HandleLocalEvent(e, bubblePhase));
        }
Exemplo n.º 2
0
        protected override bool HandleLocalEvent(Dom.Event e, bool bubblePhase)
        {
            if (base.HandleLocalEvent(e, bubblePhase))
            {
                // It was blocked. Don't run the default.
                return(true);
            }

            if (e.type == "mousedown")
            {
                // Get the scroll bar:
                HtmlScrollbarElement scroll = parentElement as HtmlScrollbarElement;

                // And scroll it:
                scroll.ScrollBy(IsStart?-1:1);
            }

            return(false);
        }