Re: [whatwg] Hit regions and events

2014-03-05 Thread Robert O'Callahan
On Wed, Mar 5, 2014 at 5:11 PM, Rik Cabanier caban...@gmail.com wrote: On Tue, Mar 4, 2014 at 6:51 PM, Robert O'Callahan rob...@ocallahan.org wrote: The question remains: what should happen in Rik's example? More generally, is this event rerouting supposed to be able to trigger browser

Re: [whatwg] Hit regions and events

2014-03-05 Thread Rik Cabanier
On Wed, Mar 5, 2014 at 2:27 AM, Robert O'Callahan rob...@ocallahan.orgwrote: On Wed, Mar 5, 2014 at 5:11 PM, Rik Cabanier caban...@gmail.com wrote: On Tue, Mar 4, 2014 at 6:51 PM, Robert O'Callahan rob...@ocallahan.org wrote: The question remains: what should happen in Rik's example? More

Re: [whatwg] Hit regions and events

2014-03-04 Thread Rik Cabanier
On Tue, Mar 4, 2014 at 3:53 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 28 Feb 2014, Rik Cabanier wrote: Reading the hit region spec [1] on event handling, I was wondering how event bubbling is supposed to be handled. Let's say you have the following markup: canvas id=cnv a id=a

Re: [whatwg] Hit regions and events

2014-03-04 Thread Ian Hickson
On Tue, 4 Mar 2014, Rik Cabanier wrote: Ok. It seems odd that the events are following the dom of the fallback elements and not of the hit regions. It's what events normally do. I guess we could make this more elaborate, but it's not clear what the use case is. Can you elaborate? It

Re: [whatwg] Hit regions and events

2014-03-04 Thread Rik Cabanier
On Tue, Mar 4, 2014 at 6:07 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 4 Mar 2014, Rik Cabanier wrote: Ok. It seems odd that the events are following the dom of the fallback elements and not of the hit regions. It's what events normally do. I guess we could make this more elaborate,

Re: [whatwg] Hit regions and events

2014-03-04 Thread Robert O'Callahan
On Wed, Mar 5, 2014 at 12:53 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 28 Feb 2014, Rik Cabanier wrote: 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? You can't

Re: [whatwg] Hit regions and events

2014-03-04 Thread Rik Cabanier
On Tue, Mar 4, 2014 at 6:51 PM, Robert O'Callahan rob...@ocallahan.orgwrote: On Wed, Mar 5, 2014 at 12:53 PM, Ian Hickson i...@hixie.ch wrote: On Fri, 28 Feb 2014, Rik Cabanier wrote: For instance, if the fallback is an edit control and the user drag-selects some text on the canvas, is it

Re: [whatwg] Hit regions and events

2014-03-04 Thread Ian Hickson
On Tue, 4 Mar 2014, Rik Cabanier wrote: On Tue, Mar 4, 2014 at 6:07 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 4 Mar 2014, Rik Cabanier wrote: Ok. It seems odd that the events are following the dom of the fallback elements and not of the hit regions. It's what events normally

Re: [whatwg] Hit regions and events

2014-03-04 Thread Rik Cabanier
On Tue, Mar 4, 2014 at 8:10 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 4 Mar 2014, Rik Cabanier wrote: On Tue, Mar 4, 2014 at 6:07 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 4 Mar 2014, Rik Cabanier wrote: Ok. It seems odd that the events are following the dom of the

Re: [whatwg] Hit regions and events

2014-03-04 Thread Ian Hickson
On Tue, 4 Mar 2014, Rik Cabanier wrote: So what would you do in the case where you start two touches on different regions, then move them at the same time to two other different regions at the same time? What would you put in the touchmove event's object? yes. Yes... what? I don't

Re: [whatwg] Hit regions and events

2014-03-04 Thread Rik Cabanier
On Tue, Mar 4, 2014 at 8:30 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 4 Mar 2014, Rik Cabanier wrote: So what would you do in the case where you start two touches on different regions, then move them at the same time to two other different regions at the same time? What would you