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

fix: rn tap event #1625

Open
wants to merge 2 commits into
base: feat-components-v2-merge
Choose a base branch
from
Open

Conversation

yandadaFreedom
Copy link
Collaborator

No description provided.

@@ -166,6 +181,7 @@ const useInnerProps = (
const capturePressEvent = ['capture-catchlongpress', 'capture-bindlongpress']
ref.current.startTimer[type] = null
ref.current.needPress[type] = true
hasEmittedTouchmove = false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉没必要记录这个,touchend直接加上检测就行了

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

以及即使要加这个也应该和needPress对齐,不应该一个记录在实例上一个记录在全局

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

Successfully merging this pull request may close these issues.

2 participants