taroify icon indicating copy to clipboard operation
taroify copied to clipboard

[Bug Report] 在支付宝小程序中,IndexList 的索引栏的点击事件未生效

Open airbreak opened this issue 3 years ago • 1 comments

问题出在哪个包

@taroify/core

问题出在哪个平台/设备/浏览器

支付宝小程序

平台/设备/浏览器

支付宝小程序开发工具和支付宝app

你正在使用的 Taroify 版本是多少

0.0.29-alpha.3

描述一下您遇到的问题以及重现步骤

打包成支付宝小程序后,IndexList 右侧的索引点击事件未生效。初步判断问题可能出现在以下代码片段:

function getClientCoordinates(event) {
      var clientX = event.clientX,
          clientY = event.clientY,
          touches = event.touches;

      if (clientX && clientY) {
        return {
          clientX: clientX,
          clientY: clientY
        };
      }

      return touches[0];
    }

支付宝小程序中clientX、 clientY 未挂载在event句柄中,而是添加了一层 detail。 同时touches也为undefined,因此函数未生效。

如果可能的话,请包含一个代码框的链接与复制的问题

No response

你知道如何解决这个问题吗

No response

您是否愿意参与修复这个问题,并创建一个 PR

No response

修复这个问题的解决方案

No response

airbreak avatar May 06 '22 03:05 airbreak

百度小程序也不支持

loethen avatar May 18 '22 07:05 loethen

新版本可以了

Pilotager avatar Jul 06 '23 14:07 Pilotager