]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] Fixed #8524 - properly update currentDrag elementOver in all cases
authorAutomerge <automerge@vaadin.com>
Thu, 22 Mar 2012 14:07:26 +0000 (14:07 +0000)
committerAutomerge <automerge@vaadin.com>
Thu, 22 Mar 2012 14:07:26 +0000 (14:07 +0000)
svn changeset:23285/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java

index dbeff243a813b0b4218f7ae8256a72af6619b4c3..74ab1dcc47a9d5063d8f8b439871e304413a0ed9 100644 (file)
@@ -167,6 +167,8 @@ public class VDragAndDropManager {
                     // ApplicationConnection.getConsole().log(
                     // "DropHandler now"
                     // + currentDropHandler.getPaintable());
+                    currentDrag
+                            .setElementOver((com.google.gwt.user.client.Element) targetElement);
                     target.dragEnter(currentDrag);
                 } else if (target == null && currentDropHandler != null) {
                     // ApplicationConnection.getConsole().log("Invalid state!?");
@@ -197,6 +199,8 @@ public class VDragAndDropManager {
             case Event.ONMOUSEMOVE:
             case Event.ONTOUCHMOVE:
                 if (currentDropHandler != null) {
+                    currentDrag
+                            .setElementOver((com.google.gwt.user.client.Element) targetElement);
                     currentDropHandler.dragOver(currentDrag);
                 }
                 nativeEvent.preventDefault();