From b2b49e2970c08c3224e504163df52c64a0665b92 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 2 Sep 2009 02:03:58 +0000 Subject: [PATCH] =?UTF-8?q?Tab=20Mix=20Plus=E3=81=A7=E6=96=B0=E3=81=97?= =?UTF-8?q?=E3=81=84=E3=82=BF=E3=83=96=E3=82=92=E7=8F=BE=E5=9C=A8=E3=81=AE?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=AE=E9=9A=A3=E3=81=AB=E9=96=8B=E3=81=8F?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=81=AB=E5=AF=BE=E3=81=99=E3=82=8B=E6=8C=99?= =?UTF-8?q?=E5=8B=95=E3=81=A7=E3=80=81=E6=96=B0=E3=81=97=E3=81=8F=E9=96=8B?= =?UTF-8?q?=E3=81=8B=E3=82=8C=E3=82=8B=E3=82=BF=E3=83=96=E3=81=8C=E7=8F=BE?= =?UTF-8?q?=E5=9C=A8=E3=81=AE=E3=82=BF=E3=83=96=E3=81=AE=E9=9A=8E=E5=B1=A4?= =?UTF-8?q?=E3=82=88=E3=82=8A=E4=B8=8A=E4=BD=8D=E3=81=AB=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5032 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 681959b6..37b9a1b0 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1737,8 +1737,13 @@ TreeStyleTabBrowser.prototype = { newParent = prevParent; } else if (prevLevel > nextLevel) { // moved to end of existing tree - var realDelta = Math.abs(aTab._tPos - aOldPosition); - newParent = realDelta < 2 ? prevParent : (parent || nextParent) ; + if (this.mTabBrowser.selectedTab != aTab) { // maybe newly opened tab + newParent = prevParent; + } + else { // maybe drag and drop + var realDelta = Math.abs(aTab._tPos - aOldPosition); + newParent = realDelta < 2 ? prevParent : (parent || nextParent) ; + } } else if (prevLevel < nextLevel) { // moved to first child position of existing tree newParent = parent || nextParent;