this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Increase timeout, but such hacky sadly

+8 -4
+8 -4
src/components/media-modal.jsx
··· 246 246 behavior: 'smooth', 247 247 }); 248 248 setTimeout(() => { 249 - carouselRef.current.focus(); 250 - }, 100); 249 + // Delay is needed for Safari, the focus stops it from scrolling 250 + // 1000 is hypothetical 251 + carouselRef.current?.focus(); 252 + }, 1000); 251 253 }} 252 254 > 253 255 <Icon icon="arrow-left" /> ··· 264 266 behavior: 'smooth', 265 267 }); 266 268 setTimeout(() => { 267 - carouselRef.current.focus(); 268 - }, 100); 269 + // Delay is needed for Safari, the focus stops it from scrolling 270 + // 1000 is hypothetical 271 + carouselRef.current?.focus(); 272 + }, 1000); 269 273 }} 270 274 > 271 275 <Icon icon="arrow-right" />