mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 05:18:51 +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',
|
backgroundPosition: focalBackgroundPosition || 'center',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onDblClick={() => {
|
||||||
|
// Open original image in new tab
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue