dispatchEvent method
Implementation
@override
void dispatchEvent(Event event) {
// Scroll event proxy to document.
if (event.type == EVENT_SCROLL) {
// https://www.w3.org/TR/2014/WD-DOM-Level-3-Events-20140925/#event-type-scroll
// When dispatched on the Document element, this event type must bubble to the Window object.
event.bubbles = true;
ownerDocument.dispatchEvent(event);
return;
}
super.dispatchEvent(event);
}