ustbhuangyi / better-scroll

:scroll: inspired by iscroll, and it supports more features and has a better scroll perfermance

Home Page:https://better-scroll.github.io/docs/en-US/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当启用 click: true 配置派发事件时无法区分是左键点击还是右键点击

cherrol opened this issue · comments

Version

2.4.2

Reproduction link

https://codepen.io/cherrol/pen/OJGVOmw

Steps to reproduce

点击 a 标签时,派发的事件 event.button 都是 0 ,无法区分是左键点击还是右键点击

What is expected?

左键点击的 event.button 为 0,右键点击的 event.button 为 1。

What is actually happening?

左键和右键点击的 event.button 都为 0


在滚动区域有链接需要跳转,无法区分左键还是右键时,右键也会直接跳转,不符合操作习惯。

借楼提问
在移动端app,启用 click: true可以正常点击;使用M1芯片的mac电脑运行iOS app,better-scroll范围点击无效。是无法兼容吗?