From 89434a7a575e97022552e985a85438c5268c94c1 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 7 Sep 2011 23:57:04 +0000 Subject: [PATCH] Use windowdragbox instead of moving the window ourselves --- .../content/zotero/integration/quickFormat.js | 17 ----------------- .../content/zotero/integration/quickFormat.xul | 4 ++-- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index def754612..0187858bb 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -784,23 +784,6 @@ var Zotero_QuickFormat = new function () { _showCitationProperties(event.target); } - /** - * Called when the user begins to drag the window - */ - this.onDragStart = function(el, event) { - dragX = event.clientX; - dragY = event.clientY; - window.addEventListener("mousemove", _onDrag, false); - window.addEventListener("mouseup", function() { window.removeEventListener("mousemove", _onDrag, false) }, false); - } - - /** - * Called during the window drag - */ - function _onDrag(event) { - window.moveTo(event.screenX-dragX, event.screenY-dragY); - } - /** * Makes "Enter" work in the panel */ diff --git a/chrome/content/zotero/integration/quickFormat.xul b/chrome/content/zotero/integration/quickFormat.xul index 11199f2ff..d52391482 100644 --- a/chrome/content/zotero/integration/quickFormat.xul +++ b/chrome/content/zotero/integration/quickFormat.xul @@ -42,7 +42,7 @@