mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Try this temporary solution for image zoom dilemma
This commit is contained in:
parent
50eb9b9f59
commit
43296662d2
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue