W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2015

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

From: James Ross <whatwg-20070806@james-ross.co.uk>
Date: Thu, 9 Jul 2015 14:09:19 +0100
Message-ID: <DUB113-W124486CD2EFD86520D0C378F9900@phx.gbl>
To: "whatwg@whatwg.org" <whatwg@whatwg.org>


> Date: Thu, 9 Jul 2015 14:42:07 +0200
> 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

This archive was generated by hypermail 2.3.1 : Thursday, 9 July 2015 13:09:50 UTC