Permalink
Browse files

dragDropElem should trigger drop events on destElem (not dragElem), (F…

…ixes: #43)
  • Loading branch information...
1 parent 4415040 commit f842c23e7e0d7c517b5c4c6a1c38a0f998b93450 @proppy proppy committed with admc Jul 28, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 windmill/html/js/controller/controller.js
@@ -286,9 +286,9 @@ windmill.controller = new function () {
windmill.controller.moveCount--;
if (windmill.controller.moveCount == 0){
- windmill.events.triggerMouseEvent(windmill.controller.dragElem, 'mouseup', true, startx, starty);
+ windmill.events.triggerMouseEvent(windmill.controller.destElem, 'mouseup', true, startx, starty);
if (!windmill.browser.isIE){
- windmill.events.triggerMouseEvent(windmill.controller.dragElem, 'click', true, startx, starty);
+ windmill.events.triggerMouseEvent(windmill.controller.destElem, 'click', true, startx, starty);
}
setTimeout('windmill.controller.doRem()', 1000);
}

0 comments on commit f842c23

Please sign in to comment.