Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/extensionsIntegrated/TabBar/overflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,19 +276,19 @@ define(function (require, exports, module) {
// get the current scroll position
const currentScroll = $tabBarElement.scrollLeft();

// animate the scroll change over 5 for a very fast effect
// animate the scroll change over 400ms for a very fast effect
if (tabLeftRelative < 0) {
// Tab is too far to the left
$tabBarElement.animate(
{ scrollLeft: currentScroll + tabLeftRelative - 10 },
5
400
Comment thread
devvaannsh marked this conversation as resolved.
Outdated
);
} else if (tabRightRelative > tabBarVisibleWidth) {
// Tab is too far to the right
const scrollAdjustment = tabRightRelative - tabBarVisibleWidth + 10;
$tabBarElement.animate(
{ scrollLeft: currentScroll + scrollAdjustment },
5
400
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/Extn-TabBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
overflow-y: hidden;
white-space: nowrap;
transition: height 0.3s ease;
scroll-behavior: smooth;
scroll-behavior: auto;
background-color: #f5f5f5;
}

Expand Down