@dolphinweex/weex-vue-render 0.2.95 → 0.2.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +4 -4
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -1571,8 +1571,9 @@ function touchstartHandler(event) {
|
|
|
1571
1571
|
startTouch: touchRecord,
|
|
1572
1572
|
startTime: Date.now(),
|
|
1573
1573
|
status: 'tapping',
|
|
1574
|
-
element: event.srcElement || event.target,
|
|
1575
|
-
|
|
1574
|
+
element: document.elementFromPoint(touch.clientX, touch.clientY) || (event.srcElement || event.target),
|
|
1575
|
+
};
|
|
1576
|
+
gesture.pressingHandler = setTimeout(function (element, touch) {
|
|
1576
1577
|
return function () {
|
|
1577
1578
|
if (gesture.status === 'tapping') {
|
|
1578
1579
|
gesture.status = 'pressing';
|
|
@@ -1589,8 +1590,7 @@ function touchstartHandler(event) {
|
|
|
1589
1590
|
clearTimeout(gesture.pressingHandler);
|
|
1590
1591
|
gesture.pressingHandler = null;
|
|
1591
1592
|
}
|
|
1592
|
-
}(event.srcElement || event.target, event.changedTouches[i]), 500)
|
|
1593
|
-
};
|
|
1593
|
+
}(event.srcElement || event.target, event.changedTouches[i]), 500);
|
|
1594
1594
|
gestures[touch.identifier] = gesture;
|
|
1595
1595
|
}
|
|
1596
1596
|
|
package/package.json
CHANGED