ArcBees / gwtquery-droppable-plugin

GwtQuery droppable plugin
MIT License
7 stars 11 forks source link

activate() only called ONMOUSEDOWN but not ONTOUCHSTART #12

Open biancashouse opened 9 years ago

biancashouse commented 9 years ago

A temp fix is to:

<replace-with
    class="your.version.of.DragAndDropManagerImpl">
    <when-type-is
        class="gwtquery.plugins.draggable.client.DragAndDropManager" />
</replace-with>

and change line 168 to:

            if (e == null || e.getTypeInt() == ONMOUSEDOWN || e.getTypeInt() == ONTOUCHSTART) {

and add the static import:

import static com.google.gwt.user.client.Event.ONTOUCHSTART;