fix(ImagePreview): disable desktop browser image drag #4487

This commit is contained in:
陈嘉涵 2020-01-12 16:56:48 +08:00
parent 6d4efa183e
commit 64cce6b0bf
2 changed files with 5 additions and 6 deletions

View File

@ -109,10 +109,4 @@ export default {
margin-left: @padding-md;
}
}
.van-image-preview {
img {
-webkit-user-drag: none;
}
}
</style>

View File

@ -25,6 +25,11 @@
left: 0;
transition-property: transform;
img {
// disable desktop browser image drag
-webkit-user-drag: none;
}
.van-image__loading {
background-color: transparent;
}