mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
Bug 1488953 - Disable smooth scroll on tabbar scrollbox to avoid stopping scrolling the last tab on race conditions. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D33615 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
a5be1c5bc5
commit
69c518e632
@ -52,6 +52,12 @@ add_task(async function() {
|
||||
|
||||
async function overflowTabs() {
|
||||
let arrowScrollbox = gBrowser.tabContainer.arrowScrollbox;
|
||||
const originalSmoothScroll = arrowScrollbox.smoothScroll;
|
||||
arrowScrollbox.smoothScroll = false;
|
||||
registerCleanupFunction(() => {
|
||||
arrowScrollbox.smoothScroll = originalSmoothScroll;
|
||||
});
|
||||
|
||||
let width = ele => ele.getBoundingClientRect().width;
|
||||
let tabMinWidth = parseInt(
|
||||
getComputedStyle(gBrowser.selectedTab, null).minWidth
|
||||
|
Loading…
Reference in New Issue
Block a user