-
Notifications
You must be signed in to change notification settings - Fork 3k
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 actions not working on touch devices #4231
Conversation
@@ -193,7 +191,7 @@ class ActionHandler extends HTMLElement implements ActionHandler { | |||
|
|||
customElements.define("action-handler", ActionHandler); | |||
|
|||
const geActionHandler = (): ActionHandler => { | |||
const getActionHandler = (): ActionHandler => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂
this.timer = window.setTimeout(() => { | ||
this.startAnimation(x, y); | ||
this.held = true; | ||
}, this.holdTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember we discussed this somewhat; something to do with not wanting to show the ripple if there was no hold action set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I still think this is not necessary when there is no hold action, but I also know @thomasloven had a lot of trouble getting this to work on all devices, so was not going to experiment 2 days before the release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absolutely
Fixes #4230