1.  
  2. var dragNavWin = function(e) {
  3. var moveable = new BiMoveHandle(e.getTarget());
  4. moveable.setMoveDirection("both");
  5. moveable.startMove(e);
  6. originalPos.setStyleProperty("display", "");
  7. var handleMoveEnd = function(e) {
  8. navWinInfo.setHtml("x = " + (navWin.getLeft() * multiple) + "<br />" + "y = " + (navWin.getTop() * multiple) + "<br />");
  9. linkMgr.setLocation(navWin.getLeft() * multiple * -1, navWin.getTop() * multiple * -1);
  10. originalPos.setLocation(navWin.getLeft(), navWin.getTop());
  11. originalPos.setStyleProperty("display", "none");
  12. }
  13. var handleMove = function(e) {
  14. navWinInfo.setHtml("x = " + (navWin.getLeft() * multiple) + "<br />" + "y = " + (navWin.getTop() * multiple) + "<br />");
  15. }
  16. moveable.addEventListener("moveend", handleMoveEnd);
  17. moveable.addEventListener("move", handleMove);
  18. }
  19.  
  20.