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
+1
View File
@@ -139,6 +139,7 @@ test('double click', async () => {
const swipe = instance.$el.querySelector('.van-swipe-item');
triggerDrag(swipe, 0, 0);
triggerDrag(swipe, 0, 0);
await later();
expect(onScale).toHaveBeenCalledWith({
index: 0,
scale: 2,