Skip to content

Commit

Permalink
Merge pull request #622 from cmv/fix/floating-titlepane-chrome-55
Browse files Browse the repository at this point in the history
Fix titlePane issue effecting IE 11/M.S. Edge and now Chrome v 55
  • Loading branch information
DavidSpriggs authored Oct 31, 2016
2 parents cbf42ba + e7a3670 commit 5d79b34
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 5d79b34

Please sign in to comment.