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

Re: Confusing thing about lostpointercapture event

From: Maksim Lebedev <alessarik@gmail.com>
Date: Tue, 2 Sep 2014 12:46:13 +0400
Message-ID: <CAMDeA0arBrydGdmBVGRRxuDSgsFz5eo+=MTmDZBPU-1zqre8hA@mail.gmail.com>
To: "public-pointer-events@w3.org" <public-pointer-events@w3.org>
I meant that according to 10.3.1 lostpointercapture must be fired at
DOCUMENT while 5.2.2 states that lostpointercapture could be fierd ONLY at
ELEMENT. So I'd like to clarify, on where event should be fired.
For example, I try to execute code like ('ongotpointercapture' in window)
and ('onlostpointercapture' in document). These code return different
values in IE and FF. All additionally information was attached to bug
1036817 at https://bugzilla.mozilla.org/show_bug.cgi?id=1036817

Thanks, Maksim Lebedev.

2014-09-01 15:41 GMT+04:00 Scott González <scott.gonzalez@gmail.com>:

> Firing at the node would mean that the event can't bubble through the
> document. Do you suggestions on different behaviors or use cases where this
> will be problematic?
> On Monday, September 1, 2014, Maksim Lebedev <alessarik@gmail.com> wrote:
>> Hi folks.
>> Latest draft of specification of pointer events have point 10.3.1
>> Implicit Release of Pointer Capture:
>> If the pointer capture target override is removed from the document tree,
>> clear the pending pointer capture target override and pointer capture
>> target override nodes and fire a Pointer Event named lostpointercapture at
>> the document.
>> But according with point 5.2.2 List of Pointer Events
>> lostpointercapture event can be fired only at element.
>> This dissonance has confusing actions for me. Maybe we should change
>> something?
>> Thanks, Maksim Lebedev.
Received on Tuesday, 2 September 2014 08:49:36 UTC

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