@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.
@@ -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' && value) {
4027
- el.addEventListener('catchtouchmove', emptyFunction);
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
  };