fix(ImagePreview): longpress error on mobile safari (#6660)

This commit is contained in:
neverland
2020-07-01 10:09:24 +08:00
committed by GitHub
parent 1ee44f772a
commit 0a5f8ed37a
4 changed files with 25 additions and 15 deletions
+12 -5
View File
@@ -9,6 +9,12 @@
&__swipe {
height: 100%;
&-item {
display: flex;
align-items: center;
justify-content: center;
}
}
&__cover {
@@ -18,13 +24,14 @@
}
&__image {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
transition-property: transform;
&--vertical {
width: auto;
height: 100%;
}
img {
// disable desktop browser image drag
-webkit-user-drag: none;