W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2014

Re: [whatwg] hit regions: type of events that are intercepted

From: Rik Cabanier <cabanier@gmail.com>
Date: Tue, 4 Mar 2014 11:34:38 -0800
Message-ID: <CAGN7qDBQ4B-8PR68UjryHk1Pnjb9sBBOOmCk2OwD4jJTbC_oYA@mail.gmail.com>
To: "whatwg@whatwg.org" <whatwg@whatwg.org>
On Mon, Mar 3, 2014 at 8:28 PM, Rik Cabanier <cabanier@gmail.com> wrote:

> The current hit region specification doesn't state what events are routed
> to the fallback content.
> Probably only mouse and touch events should be intercepted and forwarded.
>
> Thinking a bit more about this feature, it's a bit weird how events are
> rerouted. Does this happen in any other place in the browser?
> For instance, if the fallback is an edit control and the user drag-selects
> some text on the canvas, is it expected that this text is also selected in
> the edit control?
>

Talking to roc, event retargeting will be very complex to implement.
To make it simpler for authors and browser vendors, we should not intercept
the events. Instead, just keep sending them to the canvas object but add
the region's ID to it.
If the author wants to do the retargeting, he could easily do this in JS.
Received on Tuesday, 4 March 2014 19:35:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:17 UTC