Re: Question about implementing DataTransfer.addElement

2011-10-10 Thread Charles Pritchard
On 10/10/2011 4:15 PM, Ian Hickson wrote: On Mon, 10 Oct 2011, Daniel Cheng wrote: On Mon, Oct 10, 2011 at 15:26, Ian Hickson wrote: The parenthetical isn't the important part (that's why it's parenthetical). The important difference between setDragImage() and addElement() is that the latter a

Re: Question about implementing DataTransfer.addElement

2011-10-10 Thread Ian Hickson
On Mon, 10 Oct 2011, Daniel Cheng wrote: > On Mon, Oct 10, 2011 at 15:26, Ian Hickson wrote: > > > > The parenthetical isn't the important part (that's why it's > > parenthetical). The important difference between setDragImage() and > > addElement() is that the latter automatically generates th

Re: Question about implementing DataTransfer.addElement

2011-10-10 Thread Daniel Cheng
On Mon, Oct 10, 2011 at 15:26, Ian Hickson wrote: > The parenthetical isn't the important part (that's why it's > parenthetical). The important difference between setDragImage() and > addElement() is that the latter automatically generates the image based on > the current rendering of the element

Re: Question about implementing DataTransfer.addElement

2011-10-10 Thread Charles Pritchard
On 10/10/2011 3:26 PM, Ian Hickson wrote: On Fri, 7 Oct 2011, Daniel Cheng wrote: 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 render

Re: Question about implementing DataTransfer.addElement

2011-10-10 Thread Ian Hickson
On Fri, 7 Oct 2011, Daniel Cheng wrote: > > 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 ad

Re: Question about implementing DataTransfer.addElement

2011-10-07 Thread Tab Atkins Jr.
On Fri, Oct 7, 2011 at 3:18 PM, Daniel Cheng wrote: > The way drag images work today is we take a snapshot and then hand it off to > the system. To support addElement(), we'd need: > 1. Some way to detect when that element has changed in visual appearance so > we can update the drag image. > 2. So

Re: Question about implementing DataTransfer.addElement

2011-10-07 Thread Daniel Cheng
The way drag images work today is we take a snapshot and then hand it off to the system. To support addElement(), we'd need: 1. Some way to detect when that element has changed in visual appearance so we can update the drag image. 2. Some way to actually update the drag image in the middle of a dra

Re: Question about implementing DataTransfer.addElement

2011-10-07 Thread James Robinson
On Fri, Oct 7, 2011 at 2:56 PM, Tab Atkins Jr. wrote: > On Fri, Oct 7, 2011 at 2:45 PM, Daniel Cheng wrote: > > 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. > > I would think that it's basically

Re: Question about implementing DataTransfer.addElement

2011-10-07 Thread Tab Atkins Jr.
On Fri, Oct 7, 2011 at 2:45 PM, Daniel Cheng wrote: > 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. I would think that it's basically identical, technically, to implementing the element() function f

Question about implementing DataTransfer.addElement

2011-10-07 Thread Daniel Cheng
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,