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)); }
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); }