Draggable custom elements

159 views
Skip to first unread message

don.j.olmstead

unread,
Dec 9, 2013, 1:56:10 PM12/9/13
to w...@dartlang.org
I'm having the same issue as http://stackoverflow.com/questions/19800171/how-to-make-a-polymer-element-draggable where I cannot make a custom element draggable. I've been using mixins to create a library of behaviors that can be applied to polymer elements, but even though the mixin code manages to set the draggable property to true I'm not able to drag it.

I think this might be an actual bug though I haven't traced it as the Polymer.js side seems to have this working properly http://jsbin.com/ejihim/1/edit

Don Olmstead

unread,
Dec 10, 2013, 1:36:00 PM12/10/13
to w...@dartlang.org
Created a bug https://code.google.com/p/dart/issues/detail?id=15564 if anyone wants to track.


On Mon, Dec 9, 2013 at 10:56 AM, don.j.olmstead <don.j.o...@gmail.com> wrote:
I'm having the same issue as http://stackoverflow.com/questions/19800171/how-to-make-a-polymer-element-draggable where I cannot make a custom element draggable. I've been using mixins to create a library of behaviors that can be applied to polymer elements, but even though the mixin code manages to set the draggable property to true I'm not able to drag it.

I think this might be an actual bug though I haven't traced it as the Polymer.js side seems to have this working properly http://jsbin.com/ejihim/1/edit

--
You received this message because you are subscribed to the Google Groups "Dart Web Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web+uns...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/web/.

greg...@gmail.com

unread,
Dec 10, 2013, 4:25:34 PM12/10/13
to w...@dartlang.org
The jsbin example works for me in Chrome 31.

I.e. When I click and drag, instead of selecting the text, I see the "no smoking" mouse cursor, and the text "Drag me" moves with the cursor.

Don Olmstead

unread,
Dec 10, 2013, 4:26:52 PM12/10/13
to w...@dartlang.org
Yep works fine in JS but not dart so likely a bug in something on the dart side.
--

John Messerly

unread,
Dec 10, 2013, 5:05:03 PM12/10/13
to w...@dartlang.org

Don Olmstead

unread,
Dec 10, 2013, 5:20:53 PM12/10/13
to w...@dartlang.org
Thanks John! Looking forward to a fix.
Reply all
Reply to author
Forward
0 new messages