Re: Capturing Problems Example

In first, that's not a solution. What if I need the outer div to be dragged just by moving pointer without pressing mouse button? What to do if I want to drag the outer div by two fingers, not one? Two different captures on two different elements is a mess, and I seriously doubt that developers will find this method obvious.

In second, if there is only one correct way to handle the capturing, then the capturing API should not allow any other uses.

12.04.2013, 19:12, "Brandon Wallace" <brandon.wallace@yahoo.com>:
> In your capt version, will you achieve your goal if you replace:
>
> outer.msSetPointerCapture(pointerId);
>
> with:
>
> e.target.msSetPointerCapture(pointerId);
>
> ???
>
> --
> Brandon
> http://palladiumblog.wordpress.com/
>
> ----------------------------------------
> From: Konstantinov Sergey <twirl@yandex-team.ru>
> To: Pointer Events WG <public-pointer-events@w3.org>
> Sent: Friday, April 12, 2013 9:57 AM
> Subject: Capturing Problems Example
>
> I made the test pages to demonstrate both capturing problem and the lack of standard functionality
> http://konstantinov.cc/pe/doc.html
> http://konstantinov.cc/pe/capt.html
>
> Both pages demonstrate the same scenario:
> - outer gray div is draggable
> - inner gray div opens "context menu" on two-finger tap.
>
> doc.html - example using document.addEventListener with capturing
> capt.html - example using setPointerCapture.
>
> You may note that:
> (a) in the capturing example the context menu functionality is broken because the inner div never recieve 'pointerup' event;
> (b) furthermore, there is a constant memory leak because we need to save the pointers position but never catch the 'pointerup' event.
>
> --
> Konstantinov Sergey
> Yandex Maps API Development Team Lead
> http://api.yandex.com/maps/

-- 
Konstantinov Sergey
Yandex Maps API Development Team Lead
http://api.yandex.com/maps/

Received on Friday, 12 April 2013 15:54:25 UTC