mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed image sliders appearance for square images
This commit is contained in:
parent
ad2c8dca80
commit
38fd09cfe1
4 changed files with 7 additions and 6 deletions
|
@ -183,7 +183,7 @@ const NodeImageSlideBlock: FC<IProps> = ({
|
|||
setIsDragging(false);
|
||||
normalizeOffset();
|
||||
|
||||
if (+new Date() - drag_start < 300) {
|
||||
if (Math.abs(+new Date() - drag_start) < 200) {
|
||||
// click detection
|
||||
onOpenPhotoSwipe();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue