fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
43 stars 41 forks source link

Request for dragController.disableDragging() and enableDragging() #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of GWT are you using? 1.4.60? 2.0.4? Other?
2.4

What version of the gwt-dnd jar file or library file are you using?
3.1.2

This is not an issue but a feature request so probably low priority (although 
it is a very nice feature to have).

I would like to be able to enable and disable dragging without maintaining a 
list of widgets on which I called makeNotDraggable.

Do you have a workaround?
At the moment I call dragController.setBehaviorDragStartSensitivity(1500) to 
disable dragging but unfortunately my widgets keep having draggable css style 
which is annoying. 

It would be nice if we could have disableDragging() method which would disable 
dragging and remove style draggable from its dragHandles (we might need list of 
draggables as well).

Cheers
Srdjan Mitrovic

Original issue reported on code.google.com by srki....@gmail.com on 2 Dec 2012 at 11:58

GoogleCodeExporter commented 9 years ago
This will be a big change in the code, because when we call disableDragging() 
our widgets should behave as they are not draggable which means thay there 
should be no event capturing, TouchEnd and MouseEnd should work normally etc.

Original comment by srki....@gmail.com on 3 Dec 2012 at 1:13

GoogleCodeExporter commented 9 years ago

Original comment by fredsa@google.com on 28 Mar 2013 at 10:02