Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cherrol opened this issue Mar 5, 2024 · 1 comment

Comments

@cherrol
Copy link

cherrol commented Mar 5, 2024

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


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

@2jianOu
Copy link

2jianOu commented Mar 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants