mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-23 16:06:45 +00:00
fix: do not use passive scroll event listener for tab header
The buttons and indicator are all depending on it
This commit is contained in:
parent
751c106e45
commit
032aef7989
|
@ -434,7 +434,7 @@ class TabberBuilder {
|
|||
}
|
||||
|
||||
attachEvents() {
|
||||
this.tablist.addEventListener( 'scroll', { passive: true }, () => {
|
||||
this.tablist.addEventListener( 'scroll', () => {
|
||||
const activeTab = this.tablist.querySelector( '[aria-selected="true"]' );
|
||||
TabberEvent.toggleAnimation( false );
|
||||
window.requestAnimationFrame( () => {
|
||||
|
|
Loading…
Reference in a new issue