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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 6:03 PM, Jonas Sicking wrote: > On Thu, Jul 9, 2015 at 12:06 PM, Rick Byers wrote: > > On Thu, Jul 9, 2015 at 2:57 PM, Rick Byers wrote: > >> > >> > >> On Thu, Jul 9, 2015 at 2:24 PM, Jonas Sicking wrote: > >>> > >>> On Thu, Jul 9, 2015 at 11:05 AM, Boris Zbarsky > wrot

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

2015-07-09 Thread Jonas Sicking
On Thu, Jul 9, 2015 at 12:06 PM, Rick Byers wrote: > On Thu, Jul 9, 2015 at 2:57 PM, Rick Byers wrote: >> >> >> On Thu, Jul 9, 2015 at 2:24 PM, Jonas Sicking wrote: >>> >>> On Thu, Jul 9, 2015 at 11:05 AM, Boris Zbarsky wrote: >>> > On 7/9/15 1:32 PM, Rick Byers wrote: >>> >> >>> >> Done. How

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 2:59 PM, Elliott Sprehn wrote: > > On Thu, Jul 9, 2015 at 11:52 AM, Rick Byers wrote: > >> On Thu, Jul 9, 2015 at 2:21 PM, Jonas Sicking wrote: >> >> ... >> >> I agree 100% with this principle. Changed mayCancel to default to false: >> >> https://github.com/RByers/EventL

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 2:57 PM, Rick Byers wrote: > > On Thu, Jul 9, 2015 at 2:24 PM, Jonas Sicking wrote: > >> On Thu, Jul 9, 2015 at 11:05 AM, Boris Zbarsky wrote: >> > On 7/9/15 1:32 PM, Rick Byers wrote: >> >> >> >> Done. How does example 2 look now? >> >> >> >> >> http://rbyers.github.io/

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

2015-07-09 Thread Elliott Sprehn
On Thu, Jul 9, 2015 at 11:52 AM, Rick Byers wrote: > On Thu, Jul 9, 2015 at 2:21 PM, Jonas Sicking wrote: > > ... > > I agree 100% with this principle. Changed mayCancel to default to false: > > https://github.com/RByers/EventListenerOptions/commit/b6ca043c9f13cea773a9338d580a0ebc24ea8140 > . >

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 2:24 PM, Jonas Sicking wrote: > On Thu, Jul 9, 2015 at 11:05 AM, Boris Zbarsky wrote: > > On 7/9/15 1:32 PM, Rick Byers wrote: > >> > >> Done. How does example 2 look now? > >> > >> > http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#example_2 > > > >

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 2:21 PM, Jonas Sicking wrote: > >> Speaking > >> of that, having a new function makes it an option to let mayCancel be > >> false by default, compat-wise at least. > > > > That's a good question regardless of which approach we take. Filed > > https://github.com/RByers/Event

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

2015-07-09 Thread Jonas Sicking
On Thu, Jul 9, 2015 at 11:05 AM, Boris Zbarsky wrote: > On 7/9/15 1:32 PM, Rick Byers wrote: >> >> Done. How does example 2 look now? >> >> http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#example_2 > > Looks like it would work. Also looks kind of ugly because of the > obje

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

2015-07-09 Thread Jonas Sicking
>> Speaking >> of that, having a new function makes it an option to let mayCancel be >> false by default, compat-wise at least. > > That's a good question regardless of which approach we take. Filed > https://github.com/RByers/EventListenerOptions/issues/17 I definitely think that if we're going t

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

2015-07-09 Thread Boris Zbarsky
On 7/9/15 1:32 PM, Rick Byers wrote: Done. How does example 2 look now? http://rbyers.github.io/EventListenerOptions/EventListenerOptions.html#example_2 Looks like it would work. Also looks kind of ugly because of the object-truthiness bit, but I'm not sure there's any way to avoid that whi

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 12:47 PM, Rick Byers wrote: > On Thu, Jul 9, 2015 at 12:40 PM, Boris Zbarsky wrote: > >> On 7/9/15 8:42 AM, Philip Jägenstedt wrote: >> >>> Would there be any way to feature detect support for >>> EventListenerOptions as the third >>> argument? >>> >> >> Yes. You call add

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

2015-07-09 Thread Domenic Denicola
From: whatwg [mailto:whatwg-boun...@lists.whatwg.org] On Behalf Of Rick Byers > That seems like a nice incremental compromise. Using a new name for > addEventListener will help address some of the feature detection / > compatiblity concerns too. Filed > https://github.com/RByers/EventListener

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 12:40 PM, Boris Zbarsky wrote: > On 7/9/15 8:42 AM, Philip Jägenstedt wrote: > >> Would there be any way to feature detect support for EventListenerOptions >> as the third >> argument? >> > > Yes. You call addEventListener and pass an object that has getters for > the prop

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

2015-07-09 Thread Philip Jägenstedt
On Thu, Jul 9, 2015 at 6:40 PM, Boris Zbarsky wrote: > On 7/9/15 8:42 AM, Philip Jägenstedt wrote: >> >> Would there be any way to feature detect support for EventListenerOptions >> as the third >> argument? > > > Yes. You call addEventListener and pass an object that has getters for the > proper

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

2015-07-09 Thread Boris Zbarsky
On 7/9/15 8:42 AM, Philip Jägenstedt wrote: Would there be any way to feature detect support for EventListenerOptions as the third argument? Yes. You call addEventListener and pass an object that has getters for the properties you care about detecting. If those getters get invoked, the bro

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 11:40 AM, Philip Jägenstedt wrote: > On Thu, Jul 9, 2015 at 5:30 PM, Rick Byers wrote: > > On Thu, Jul 9, 2015 at 11:22 AM, Anne van Kesteren > wrote: > >> > >> On Thu, Jul 9, 2015 at 5:15 PM, Rick Byers wrote: > >> > I think there's a big opportunity to substantially im

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

2015-07-09 Thread Philip Jägenstedt
On Thu, Jul 9, 2015 at 5:30 PM, Rick Byers wrote: > On Thu, Jul 9, 2015 at 11:22 AM, Anne van Kesteren wrote: >> >> On Thu, Jul 9, 2015 at 5:15 PM, Rick Byers wrote: >> > I think there's a big opportunity to substantially improve scroll >> > performance on the web in the relatively short term by

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 11:22 AM, Anne van Kesteren wrote: > On Thu, Jul 9, 2015 at 5:15 PM, Rick Byers wrote: > > I think there's a big opportunity to substantially improve scroll > > performance on the web in the relatively short term by doing something > > incremental. I.e. I'm pretty sure I

Re: [whatwg] Proposal: Two changes to iframe@sandbox

2015-07-09 Thread Daniel Veditz
On Mon, Jul 6, 2015 at 2:47 AM, Mike West wrote: > I've dropped the opener/openee-disowning behavior from my proposal, > and renamed the sandboxing keyword to `allow-popups-to-escape-sandbox` in > > https://wiki.whatwg.org/index.php?title=Iframe_sandbox_improvments&diff=9958&oldid=9955 ​It appe

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

2015-07-09 Thread Olli Pettay
On 07/09/2015 06:22 PM, Anne van Kesteren wrote: On Thu, Jul 9, 2015 at 5:15 PM, Rick Byers wrote: I think there's a big opportunity to substantially improve scroll performance on the web in the relatively short term by doing something incremental. I.e. I'm pretty sure I can get major scroll-b

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

2015-07-09 Thread Anne van Kesteren
On Thu, Jul 9, 2015 at 5:15 PM, Rick Byers wrote: > I think there's a big opportunity to substantially improve scroll > performance on the web in the relatively short term by doing something > incremental. I.e. I'm pretty sure I can get major scroll-blocking libraries > like Google Analytics to o

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 11:05 AM, Anne van Kesteren wrote: > On Thu, Jul 9, 2015 at 3:58 PM, Rick Byers wrote: > > I'd love to hear other ideas! > > Well, we have had some discussions in the past about introducing a > better event API: > > https://gist.github.com/annevk/5238964 > > Maybe the ti

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

2015-07-09 Thread Anne van Kesteren
On Thu, Jul 9, 2015 at 3:58 PM, Rick Byers wrote: > I'd love to hear other ideas! Well, we have had some discussions in the past about introducing a better event API: https://gist.github.com/annevk/5238964 Maybe the time has come... (I agree with Philip that if we add this it would need to b

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 9:49 AM, Philip Jägenstedt wrote: > On Thu, Jul 9, 2015 at 3:44 PM, Rick Byers wrote: > > On Thu, Jul 9, 2015 at 9:39 AM, Rick Byers wrote: > >> > >> > >> On Thu, Jul 9, 2015 at 9:05 AM, James Ross < > w3c-20040...@james-ross.co.uk> > >> wrote: > >>> > >>> > Date: Thu, 9

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

2015-07-09 Thread Philip Jägenstedt
On Thu, Jul 9, 2015 at 3:44 PM, Rick Byers wrote: > On Thu, Jul 9, 2015 at 9:39 AM, Rick Byers wrote: >> >> >> On Thu, Jul 9, 2015 at 9:05 AM, James Ross >> wrote: >>> >>> > Date: Thu, 9 Jul 2015 14:42:07 +0200 >>> > From: phil...@opera.com >>> > >>> > I think this looks like a very promising ap

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 9:39 AM, Rick Byers wrote: > > On Thu, Jul 9, 2015 at 9:05 AM, James Ross > wrote: > >> > Date: Thu, 9 Jul 2015 14:42:07 +0200 >> > From: phil...@opera.com >> > >> > I think this looks like a very promising approach. Would there be any >> > way to feature detect support fo

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

2015-07-09 Thread Rick Byers
On Thu, Jul 9, 2015 at 9:05 AM, James Ross wrote: > > Date: Thu, 9 Jul 2015 14:42:07 +0200 > > From: phil...@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

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

2015-07-09 Thread James Ross
> Date: Thu, 9 Jul 2015 14:42:07 +0200 > From: phil...@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

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

2015-07-09 Thread Philip Jägenstedt
On Wed, Jul 8, 2015 at 9:12 PM, Rick Byers wrote: > [Cross-posted to www-...@w3.org - please let me know if there's a better > way to account for the DOM spec duality] > > In Chromium we've long worked hard at maximizing scroll performance, with > scroll-blocking DOM events (wheel and touchstart