forked from mirrors/gecko-dev
Bug 538585, check if event is cancelled before dragging window, r=neil
This commit is contained in:
parent
49b6a5ee05
commit
cfa94da201
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ WindowDraggingElement.prototype = {
|
|||
handleEvent: function(aEvent) {
|
||||
switch (aEvent.type) {
|
||||
case "mousedown":
|
||||
if (aEvent.button != 0 || !this.mouseDownCheck.call(this._elem, aEvent))
|
||||
if (aEvent.button != 0 || !this.mouseDownCheck.call(this._elem, aEvent) ||
|
||||
aEvent.getPreventDefault())
|
||||
return;
|
||||
|
||||
let target = aEvent.originalTarget, parent = aEvent.originalTarget;
|
||||
|
|
|
|||
Loading…
Reference in a new issue