In MS Edge with a lot of vertical tabs when a newly created tab moved to near the top, it scrolls the tabs to the bottom, making active (new) tab out of sight. Is there a way prevent tabs from scrolling or at least scroll to the active tab?
background.js
/* listen for new tab event */
chrome.tabs.onCreated.addListener( tab =>
{
/* move tab to the top */
chrome.tabs.move(tab.id, {index: 0});
});
manifest.json
{
"background": {
"persistent": true,
"scripts": [ "background.js" ]
},
"description": "open new tabs as first tab",
"manifest_version": 2,
"name": "test",
"permissions": [ "tabs" ],
"version": "0.0.1"
}