mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix(ImagePreview): disable desktop browser image drag #4487
This commit is contained in:
@@ -109,10 +109,4 @@ export default {
|
|||||||
margin-left: @padding-md;
|
margin-left: @padding-md;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-image-preview {
|
|
||||||
img {
|
|
||||||
-webkit-user-drag: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@@ -25,6 +25,11 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
transition-property: transform;
|
transition-property: transform;
|
||||||
|
|
||||||
|
img {
|
||||||
|
// disable desktop browser image drag
|
||||||
|
-webkit-user-drag: none;
|
||||||
|
}
|
||||||
|
|
||||||
.van-image__loading {
|
.van-image__loading {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user