this repo has no description
0
fork

Configure Feed

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

Fix toggle show control firing unnecessarily

+5 -1
+5 -1
src/components/media-modal.jsx
··· 142 142 key={media.id} 143 143 ref={i === currentIndex ? carouselFocusItem : null} 144 144 onClick={(e) => { 145 - if (e.target !== e.currentTarget) { 145 + // console.log(e); 146 + // if (e.target !== e.currentTarget) { 147 + // setShowControls(!showControls); 148 + // } 149 + if (!e.target.classList.contains('media')) { 146 150 setShowControls(!showControls); 147 151 } 148 152 }}