W3C home > Mailing lists > Public > public-pointer-events@w3.org > July to September 2014

Amazing set/releasePointerCapture. Part two.

From: Maksim Lebedev <alessarik@gmail.com>
Date: Fri, 26 Sep 2014 20:32:56 +0400
Message-ID: <CAMDeA0Ys0D384fvv1U9gdvCmyH==P33rKQtFS=wah5JC3_4YbQ@mail.gmail.com>
To: "public-pointer-events@w3.org" <public-pointer-events@w3.org>
Hi folks.

Unfortunately, I didn't find any discussions about
"set/releasePointerCapture. Part one" And would like to provide one
else non-obvious case.

function TargetOnPointerDown(event) {
function TargetOnGotPointerCapture(event) {
function TargetOnLostPointerCapture(event) {

User puts down mouse on target and then moves around.
After pointerdown, browser tried to send pointermove event. But:
According point 5.2.1 in specification gotpointercapture should be
fired before any other pointer events.
Browser send gotpointercapture and in this place releasePointerCapture
was called.
According point 5.2.12 in specification lostpointercapture should be
fired before other pointer events too.
Browser send lostpointercapture and in this place setPointerCapture was called.

When user receive pointermove event? Looks like, in this test case we have loop.

Thanks, Maksim Lebedev.
Received on Friday, 26 September 2014 16:33:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:48:11 UTC