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:
alistair3149 2024-05-25 22:59:48 -04:00
parent 751c106e45
commit 032aef7989
No known key found for this signature in database

View file

@ -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( () => {