mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 06:31:45 +08:00
fix(ImagePreview): disable desktop browser image drag #4487
This commit is contained in:
parent
6d4efa183e
commit
64cce6b0bf
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user