зеркало из https://github.com/mozilla/gecko-dev.git
Bug 505700 - Don't allow moving the window with the toolbar while in fullscreen mode. r=enndeakin
This commit is contained in:
Родитель
6411fea42a
Коммит
5ac4d53376
|
@ -430,15 +430,16 @@
|
|||
<binding id="toolbar-drag"
|
||||
extends="chrome://global/content/bindings/toolbar.xml#toolbar">
|
||||
<implementation>
|
||||
<constructor>
|
||||
<constructor><![CDATA[
|
||||
try {
|
||||
Components.utils.import("resource://gre/modules/WindowDraggingUtils.jsm");
|
||||
let draggableThis = new WindowDraggingElement(this, window);
|
||||
draggableThis.mouseDownCheck = function(e) {
|
||||
return !this.parentNode.customizing; // Don't move while customizing.
|
||||
// Don't move while customizing or while in full screen mode.
|
||||
return !this.parentNode.customizing && !window.fullScreen;
|
||||
}
|
||||
} catch (e) {}
|
||||
</constructor>
|
||||
]]></constructor>
|
||||
</implementation>
|
||||
</binding>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче