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

> From: philipj@opera.com
> 
> I think this looks like a very promising approach. Would there be any
> way to feature detect support for EventListenerOptions as the third
> argument? It seems like a problem that addEventListener(type,
> callback, { mayCancel: false }) would be treated as
> addEventListener(type, callback, true) in existing browsers.

http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#extensions-to-the-event-interface and http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#examples example 2 are intended to cover this.

-- 
James Ross <james@james-ross.co.uk>

            
 		 	   		  

Received on Thursday, 9 July 2015 13:09:49 UTC