mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-27 17:50:55 +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() {
|
attachEvents() {
|
||||||
this.tablist.addEventListener( 'scroll', { passive: true }, () => {
|
this.tablist.addEventListener( 'scroll', () => {
|
||||||
const activeTab = this.tablist.querySelector( '[aria-selected="true"]' );
|
const activeTab = this.tablist.querySelector( '[aria-selected="true"]' );
|
||||||
TabberEvent.toggleAnimation( false );
|
TabberEvent.toggleAnimation( false );
|
||||||
window.requestAnimationFrame( () => {
|
window.requestAnimationFrame( () => {
|
||||||
|
|
Loading…
Reference in a new issue