Re: [whatwg] DOM Events Proposal: EventListenerOptions 'mayCancel' for improved scroll performance

On Sun, Jul 12, 2015 at 11:52 PM, Elliott Sprehn <esprehn@chromium.org> wrote:
> This is what I had in mind as well. Also it occurs to me there's a missing
> primitive here for how the browser knows that all listeners have mayCancel:
> false so it can make this optimization. EventTarget needs some kind of
> method like:
>
> boolean hasOnlyPassiveEventListeners(DOMString type)
>
> so the scroll system can query if all listeners have mayCancel: false to
> make the optimization.

That would make event listeners observable.


-- 
https://annevankesteren.nl/

Received on Monday, 13 July 2015 06:03:31 UTC