Change-Id: I05023392ebe99635ebe1700b14e84a317f4d6cb8
currentDrag.setCurrentGwtEvent(nativeEvent);
updateDragImagePosition();
- Element targetElement = Element.as(nativeEvent.getEventTarget());
+ Node targetNode = Node.as(nativeEvent.getEventTarget());
+ Element targetElement;
+ if (Element.is(targetNode)) {
+ targetElement = Element.as(targetNode);
+ } else {
+ targetElement = targetNode.getParentElement();
+ }
+
if (Util.isTouchEvent(nativeEvent)
|| (dragElement != null && dragElement
.isOrHasChild(targetElement))) {