import * as Bowser from 'bowser' ; const browser = Bowser . getParser ( window . navigator . userAgent ) ; if ( browser . is ( 'mobile' ) && browser . is ( 'safari' ) ) { setInterval ( ( ) => { window . scroll ( { left : 0 } ) ; } , 50 ) ; }