Bug 538585, check if event is cancelled before dragging window, r=neil

This commit is contained in:
Neil Deakin 2010-02-01 10:11:08 -05:00
parent 49b6a5ee05
commit cfa94da201

View file

@ -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;