[whatwg] Proposed addition to Drag and Drop API

Alex Bain alex at alexba.in
Fri Jun 29 16:37:44 PDT 2012


@Ryosuke - I do not have a concrete proposal but would be interested in helping to work one out. I had idly considered a content attribute but think that specifying an element (perhaps via a function called setDragElement()) would be a simple implementation.

@Daniel - I had thought that was possible but in my testing I was not able to get it to work. I had tried referencing an existing element as well as creating a new element but neither were visible while dragging [in Chrome].


On Friday, June 29, 2012 at 4:30 PM, Daniel Cheng wrote:

> Can't you use setDragImage() and pass it the element that holds the post title?
> 
> Daniel 
> 
> 
> On Fri, Jun 29, 2012 at 4:27 PM, Ryosuke Niwa <rniwa at webkit.org (mailto:rniwa at webkit.org)> wrote:
> > On Fri, Jun 29, 2012 at 4:24 PM, Alex Bain <alex at alexba.in (mailto:alex at alexba.in)> wrote:
> > > I would prefer not to visually drag the entire post around (which is what happens if I set draggable to true on the post container). My goal is to set draggable on a container element and only show a small element when the user starts dragging.
> > 
> > Ah, that's an interesting use case. Thanks for clarification. Do you have a concrete proposal for this? (e.g. adding new content attribute / element).
> > 
> > - Ryosuke 
> > 
> 




More information about the whatwg mailing list