We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a7285 commit db87897Copy full SHA for db87897
src/slider/tp-slider.ts
@@ -319,8 +319,9 @@ export class TPSliderElement extends HTMLElement {
319
}
320
321
// First, update the height.
322
+
323
// Yield to main thread to fix a bug in Safari 16.
- setTimeout( this.updateHeight.bind( this ), 10 );
324
+ setTimeout( () => this.updateHeight(), 0 );
325
326
// Now lets slide!
327
const behaviour: string = this.getAttribute( 'behaviour' ) || '';
0 commit comments