-
Notifications
You must be signed in to change notification settings - Fork 28
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
Shouldn't respond to the scroll event on mobile device #23
Comments
This is related to another bug: #12 |
Hey Vladimir, Thanks for a quick reply! So what about just remove that touchend handler for click? Sounds like we the touchend should only apply to hover for hiding the tooltip I guess? And for click I don't think touchend event is necessary as all we need is a click event? Some thing like this: |
Hey Junkai! Thanks for this suggestion, I'll check it out and see if it resolves the issue. |
Ok, I've checked your proposal and it seems it's not an option to remove a touch event handler for click events as it breaks tooltips in iOS. |
@cyfloel0516 can you provide a repro with your case so I can try to figure out a way to solve it? |
Hey @slmgc! I don't have a repo to show you now. But actually you can simply use your Demo Page to reproduce the issue. Two ways to reproduce:
|
Hey, I am currently working on the new API which will allow more freedom in trigger-events customization. This should resolve your use-case. |
Hey I just found a little problem on mobile device that the hint will be triggered when I hold my finger on the target and then scroll the screen even I set the events to "click".
I think it is not the expected behavior as holding and scrolling should not trigger click on mobile device. I guess the reason is because in the last line of toggleEvent function you register a handler for "touchend" even for click?
ToggleEvent function
The text was updated successfully, but these errors were encountered: