Skip to content

Commit 7345400

Browse files
committed
1.2.2 build. fix issue about click events inside a tree node do not work on touch devices #12
1 parent de36465 commit 7345400

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

dist/he-tree-vue.cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* he-tree-vue v1.2.1
2+
* he-tree-vue v1.2.2
33
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
44
* Homepage: https://he-tree-vue.phphe.com
55
* Released under the MIT License.

dist/he-tree-vue.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* he-tree-vue v1.2.1
2+
* he-tree-vue v1.2.2
33
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
44
* Homepage: https://he-tree-vue.phphe.com
55
* Released under the MIT License.

dist/he-tree-vue.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* he-tree-vue v1.2.1
2+
* he-tree-vue v1.2.2
33
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
44
* Homepage: https://he-tree-vue.phphe.com
55
* Released under the MIT License.
@@ -2809,7 +2809,7 @@
28092809
}
28102810

28112811
/*!
2812-
* draggable-helper v4.0.2
2812+
* draggable-helper v4.0.3
28132813
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)
28142814
* Homepage: undefined
28152815
* Released under the MIT License.
@@ -2949,7 +2949,12 @@
29492949
} // detect draggable end =================================
29502950

29512951

2952-
e.preventDefault();
2952+
if (!index.isTouch(e)) {
2953+
// Do not prevent event now and when the client is mobile. Doing so will result in elements within the node not triggering click event.
2954+
// 不要在此时, 客户端为移动端时阻止事件. 否则将导致节点内的元素不触发点击事件.
2955+
e.preventDefault();
2956+
}
2957+
29532958
store.mouse = {
29542959
x: mouse.x,
29552960
y: mouse.y

0 commit comments

Comments
 (0)