[whatwg] hit regions: type of events that are intercepted
cabanier at gmail.com
Tue Mar 4 11:34:38 PST 2014
On Mon, Mar 3, 2014 at 8:28 PM, Rik Cabanier <cabanier at 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.
More information about the whatwg