W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Question about implementing DataTransfer.addElement

From: Daniel Cheng <dcheng@chromium.org>
Date: Fri, 7 Oct 2011 14:45:45 -0700
Message-ID: <CAF3XrKqarFv0HT6G0gw+mdLXFLgtCH=bpSV65RtpKXycqoGXoQ@mail.gmail.com>
To: public-webapps <public-webapps@w3.org>
What's the difference between addElement and setDragImage()?

The spec says:

> The difference between setDragImage() and addElement() is that the latter
> automatically generates the image based on the current rendering of the
> elements added (potentially keeping it updated as the drag continues, e.g.
> if the elements include an actively playing video), whereas the former uses
> the exact specified image at the time the method is invoked.

For technical reasons, animating the drag image is non-trivial and not
likely to be implemented in the near future, if it is ever implemented.
However, if we don't implement dynamic drag image updates, doesn't that make
it essentially the same as setDragImage()? In that case, what's the point of
having addElement(); wouldn't it make more sense to just remove it rather
than having two different ways of doing the same thing?

Received on Friday, 7 October 2011 21:46:10 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:36 UTC