-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(activator): cancelled touch does not cause layout thrashing
- Loading branch information
1 parent
04d9f5a
commit 22d6bc5
Showing
4 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22d6bc5
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 had some errors on Gmaps sdk native while clicking on the component, this did the trick:
export var isActivatable = function (ele) { if (ACTIVATABLE_ELEMENTS.indexOf(ele.tagName) > -1) { return true; } for (var i = 0, l = ACTIVATABLE_ATTRIBUTES.length; i < l; i++) { if (typeof ele.hasAttribute !== 'function' || ele.hasAttribute(ACTIVATABLE_ATTRIBUTES[i])) { return true; } } return false; };