From 6d13730c648a22555eb15d6a68e342fe4135d7b9 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Wed, 9 Feb 2011 02:56:33 +0900 Subject: [PATCH] when a tab is dropped out of windows, two windows were wrongly opened. --- modules/tabbarDNDObserver.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index a03fe29f..bf0a862a 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -824,6 +824,7 @@ catch(e) { // prevent handling of this event by the default handler aEvent.stopPropagation(); + aEvent.preventDefault(); var eX = aEvent.screenX; var eY = aEvent.screenY; @@ -1129,7 +1130,7 @@ catch(e) { strip.addEventListener('dragover', this, true); strip.addEventListener('dragenter', this, false); strip.addEventListener('dragleave', this, false); - strip.addEventListener('dragend', this, false); + strip.addEventListener('dragend', this, true); strip.addEventListener('drop', this, true); }, @@ -1150,7 +1151,7 @@ catch(e) { strip.removeEventListener('dragover', this, true); strip.removeEventListener('dragenter', this, false); strip.removeEventListener('dragleave', this, false); - strip.removeEventListener('dragend', this, false); + strip.removeEventListener('dragend', this, true); strip.removeEventListener('drop', this, true); }