W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] HTML5 Drag-and-Drop Specification: dragenter

From: Daniel Cheng <dcheng@chromium.org>
Date: Mon, 16 Aug 2010 16:57:56 -0700
Message-ID: <AANLkTim5Y6o13K6D_LUQJZGVxqt8Tj72zZs+YJFfDG4n@mail.gmail.com>
I don't think anything in the spec should prevent that. dragenter handlers
attached to different drop targets can check event.dataTransfer.types and
decide if they want to accept the drag or not.

That being said, do any operating systems actually support multiple
concurrent drags and drops? WebKit has some built-in assumptions about there
being no more than one drag-and-drop operation (per page possibly--I can't
test, since I don't have access to a machine with multi-touch capabilities)
and I would be surprised if many other applications didn't have this
limitation as well.

Daniel

On Thu, Aug 12, 2010 at 16:26, Jason Gross
<jasongross9+html5 at gmail.com<jasongross9%2Bhtml5 at gmail.com>
> wrote:

> Greetings,
> The specification says that the dragenter event is "used to determine
> whether or not the drop target is to accept the drop".  Do functions bound
> to this event get any information about the object being dragged?  In
> particular, is there a good way to have N drop targets, and have each of
> them accept only certain draggables?  If not, it seems to me like a good
> feature to have, especially as multi-touch applications/devices become more
> prevalent.
> Thanks.
>
> Sincerely,
> Jason Gross
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100816/02f9b8fb/attachment.htm>
Received on Monday, 16 August 2010 16:57:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:00 UTC