this repo has no description
0
fork

Configure Feed

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

Allow GIFs play on focus/blur too

+14
+14
src/components/media.jsx
··· 321 321 } catch (e) {} 322 322 } 323 323 }} 324 + onFocus={() => { 325 + if (hoverAnimate) { 326 + try { 327 + videoRef.current.play(); 328 + } catch (e) {} 329 + } 330 + }} 331 + onBlur={() => { 332 + if (hoverAnimate) { 333 + try { 334 + videoRef.current.pause(); 335 + } catch (e) {} 336 + } 337 + }} 324 338 > 325 339 {showOriginal || autoGIFAnimate ? ( 326 340 isGIF && showOriginal ? (