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

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

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 9 Jul 2015 11:24:17 -0700
Message-ID: <CA+c2ei8RreAmWasLRN0jpuumcNswEXY-BkbXfrugwiv=o1-rhg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: WHAT Working Group <whatwg@lists.whatwg.org>, Rick Byers <rbyers@chromium.org>
On Thu, Jul 9, 2015 at 11:05 AM, Boris Zbarsky <bzbarsky@mit.edu> 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
> object-truthiness bit, but I'm not sure there's any way to avoid that while
> keeping the "overload a boolean and dictionary" setup.

I'm not a fan of this approach. It'll be very hard to get users to opt
in consistently to the faster behavior. Especially given that it
requires much more typing.

/ Jonas
Received on Thursday, 9 July 2015 18:25:15 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 9 July 2015 18:25:16 UTC