Re: [whatwg] Proposed addition to Drag and Drop API

2012-08-30 Thread Ian Hickson
On Fri, 29 Jun 2012, Alex Bain wrote: > > I've spent the past few days working with the Drag and Drop API and I'd > like to propose an addition to the spec to aid developers and designers > in creating accessible drag interfaces. > > **Use case:** > > I'm developing an app that allows users to

Re: [whatwg] Proposed addition to Drag and Drop API (Alex Bain)

2012-07-02 Thread Trevor Burnham
> I did a bit of reading about what the WhatWG spec says setDragImage should do > and wanted to ensure I understand what the spec is saying and how Webkit is > behaving. > > Spec: > http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dom-datatransfer-setdragimage > > The spec

Re: [whatwg] Proposed addition to Drag and Drop API

2012-07-02 Thread Daniel Cheng
I tested locally and it works for me--if I set a specific element as the drag image, it gets used instead of the entire draggable element. Daniel On Mon, Jul 2, 2012 at 10:06 AM, Alex Bain wrote: > I did a bit of reading about what the WhatWG spec says setDragImage should > do and wanted to en

Re: [whatwg] Proposed addition to Drag and Drop API

2012-07-02 Thread Alex Bain
I did a bit of reading about what the WhatWG spec says setDragImage should do and wanted to ensure I understand what the spec is saying and how Webkit is behaving. Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dom-datatransfer-setdragimage The spec says defines "se

Re: [whatwg] Proposed addition to Drag and Drop API

2012-06-29 Thread Alex Bain
@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 pos

Re: [whatwg] Proposed addition to Drag and Drop API

2012-06-29 Thread Daniel Cheng
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 wrote: > On Fri, Jun 29, 2012 at 4:24 PM, Alex Bain wrote: > >> I would prefer not to visually drag the entire post around (which is what >> happens if I set dr

Re: [whatwg] Proposed addition to Drag and Drop API

2012-06-29 Thread Ryosuke Niwa
On Fri, Jun 29, 2012 at 4:24 PM, Alex Bain 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 drag

Re: [whatwg] Proposed addition to Drag and Drop API

2012-06-29 Thread Alex Bain
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. On Friday, June 29, 2012 at 4:21 PM, Ryosuke Niwa

Re: [whatwg] Proposed addition to Drag and Drop API

2012-06-29 Thread Ryosuke Niwa
On Fri, Jun 29, 2012 at 4:12 PM, Alex Bain wrote: > I've spent the past few days working with the Drag and Drop API and I'd > like to propose an addition to the spec to aid developers and designers in > creating accessible drag interfaces. > > **Use case:** > > I'm developing an app that allows u

[whatwg] Proposed addition to Drag and Drop API

2012-06-29 Thread Alex Bain
Hello, I've spent the past few days working with the Drag and Drop API and I'd like to propose an addition to the spec to aid developers and designers in creating accessible drag interfaces. **Use case:** I'm developing an app that allows users to drag pieces of user generated content (Posts)