Skip to content

Commit

Permalink
Merge pull request #409 from cmv/feature/fix-floating-window-drag-not…
Browse files Browse the repository at this point in the history
…-releasing

Add mouseup and touchend events to document to release dragging movable.
  • Loading branch information
DavidSpriggs committed May 20, 2015
2 parents 723f8e7 + 3db4582 commit 20f18f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions viewer/js/gis/dijit/FloatingTitlePane.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ define([
aspect.after(this._moveable, 'onMove', lang.hitch(this, '_dragging'), true);
aspect.after(this._moveable, 'onMoveStop', lang.hitch(this, '_endDrag'), true);
aspect.after(this._moveable, 'onMoveStart', lang.hitch(this, '_startDrag'), true);

// ensure that dragging the movable stops no matter
// when/where the mouse is released or a touch is completed
on(document, 'mouseup, touchend', lang.hitch(this, '_endDrag'));
}
this.inherited(arguments);
},
Expand Down

0 comments on commit 20f18f9

Please sign in to comment.