リンクをタブの上にドラッグした時、一定時間待ってからタブが切り替わるのではなく、ディレイ無しですぐに切り替わってしまっていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6618 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
74721d85f9
commit
c07376f345
@ -665,10 +665,11 @@ try{
|
|||||||
if (effects == 'link') {
|
if (effects == 'link') {
|
||||||
let now = Date.now();
|
let now = Date.now();
|
||||||
if (!time) {
|
if (!time) {
|
||||||
|
time = now;
|
||||||
if ('mDragTime' in observer)
|
if ('mDragTime' in observer)
|
||||||
observer.mDragTime = now;
|
observer.mDragTime = time;
|
||||||
else
|
else
|
||||||
observer._dragTime = now;
|
observer._dragTime = time;
|
||||||
}
|
}
|
||||||
if (now >= time + delay)
|
if (now >= time + delay)
|
||||||
aTabBrowser.selectedTab = info.target;
|
aTabBrowser.selectedTab = info.target;
|
||||||
|
Loading…
Reference in New Issue
Block a user