@tarojs/runtime 4.1.12-alpha.5 → 4.1.12-alpha.6
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/bom/document.js +7 -2
- package/dist/bom/document.js.map +1 -1
- package/dist/index.cjs.js +7 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/runtime.esm.js +7 -2
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/runtime.esm.js
CHANGED
|
@@ -4023,8 +4023,13 @@ function createTTDomDocument() {
|
|
|
4023
4023
|
el.setAttribute = function (name, value) {
|
|
4024
4024
|
const result = originalSetAttribute(name, value);
|
|
4025
4025
|
// 处理 catchMove 属性
|
|
4026
|
-
if (name === 'catchMove'
|
|
4027
|
-
|
|
4026
|
+
if (name === 'catchMove') {
|
|
4027
|
+
if (value) {
|
|
4028
|
+
el.addEventListener('catchtouchmove', emptyFunction);
|
|
4029
|
+
}
|
|
4030
|
+
else {
|
|
4031
|
+
el.removeEventListener('catchtouchmove', emptyFunction);
|
|
4032
|
+
}
|
|
4028
4033
|
}
|
|
4029
4034
|
return result;
|
|
4030
4035
|
};
|