From 2f2143311510db79b67fa4b4ecd82678778c2ed1 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Fri, 30 Nov 2012 03:36:16 +0900 Subject: [PATCH] Update tabsDragUtils --- content/treestyletab/res/tabsDragUtils.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/res/tabsDragUtils.js b/content/treestyletab/res/tabsDragUtils.js index b8d72862..0007d4b8 100644 --- a/content/treestyletab/res/tabsDragUtils.js +++ b/content/treestyletab/res/tabsDragUtils.js @@ -172,6 +172,7 @@ 'TDUContext.tabScreenX = tabScreenX;\n' + 'TDUContext.translateX = translateX;\n' + 'TDUContext.utils.updateDraggedTabsTransform(TDUContext);\n' + + 'tabs = TDUContext.utils.extractNotDraggedTabs(tabs, TDUContext);\n' + '$&' ).replace( 'if (screenX > tabCenter)', @@ -186,10 +187,6 @@ 'if (newIndex >= oldIndex)', 'if (TDUContext.utils.checkDontMove(TDUContext)) return;\n' + '$&' - ).replace( - 'draggedTab._dragData.animDropIndex = newIndex', - 'tabs = TDUContext.utils.extractNotDraggedTabs(tabs, TDUContext);\n' + - '$&' ).replace( '-tabWidth : tabWidth', '/* $& */ -TDUContext.tabsWidth : TDUContext.tabsWidth' @@ -274,6 +271,7 @@ // TDUContext.tabScreenX = tabScreenX; // TDUContext.translateX = translateX; // TDUContext.utils.updateDraggedTabsTransform(TDUContext); +// tabs = TDUContext.utils.extractNotDraggedTabs(tabs, TDUContext); // let tabCenter = Math.round(tabScreenX + translateX + tabWidth / 2); // let newIndex = -1; // let oldIndex = "animDropIndex" in draggedTab._dragData ? @@ -305,7 +303,6 @@ // newIndex++; // if (newIndex < 0 || newIndex == oldIndex) // return; -// tabs = TDUContext.utils.extractNotDraggedTabs(tabs, TDUContext); // draggedTab._dragData.animDropIndex = newIndex; // // // Shift background tabs to leave a gap where the dragged tab @@ -328,7 +325,7 @@ // return 0; // } // TDUContext.destroy(); -// +// // } } },