Skip to content

Commit

Permalink
fix issue in dojo mover class causing IE and now Chrome v 55 to not l…
Browse files Browse the repository at this point in the history
…et go of the titlePane when mouse is released.
  • Loading branch information
tmcgee committed Oct 30, 2016
1 parent 0b3838b commit 1c0d0bb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions viewer/js/gis/dijit/FloatingTitlePane.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ define([
},
startup: function () {
if (this.titleBarNode && this.canFloat) {
if (has('edge') || has('trident')) {
this.dragDelay = 0;
}
this._moveable = new Moveable(this.domNode, {
handle: this.titleBarNode,
delay: this.dragDelay
});
if (this.dragDelay > 0) {
this._moveable.mover.prototype.onMouseUp = function (e) {
this.destroy();
e.preventDefault();
e.stopPropagation();
};
}
this._titleBarHeight = domStyle.get(this.titleBarNode, 'height');
aspect.after(this._moveable, 'onMove', lang.hitch(this, '_dragging'), true);
aspect.after(this._moveable, 'onMoveStop', lang.hitch(this, '_endDrag'), true);
Expand Down

0 comments on commit 1c0d0bb

Please sign in to comment.