1
0
Fork 0

Try this temporary solution for image zoom dilemma

This commit is contained in:
Lim Chee Aun 2023-03-09 21:55:31 +08:00
parent 50eb9b9f59
commit 43296662d2

View file

@ -74,6 +74,10 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
backgroundPosition: focalBackgroundPosition || 'center',
}
}
onDblClick={() => {
// Open original image in new tab
window.open(url, '_blank');
}}
/>
</div>
);