Skip to content

Commit

Permalink
perf(click): increase number to find activatable elements
Browse files Browse the repository at this point in the history
Closes #9190
  • Loading branch information
adamdbradley committed Nov 16, 2016
1 parent c44f6b6 commit c8aad56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tap-click/tap-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class TapClick {

function getActivatableTarget(ele: HTMLElement) {
let targetEle = ele;
for (let x = 0; x < 4; x++) {
for (let x = 0; x < 10; x++) {
if (!targetEle) break;
if (isActivatable(targetEle)) return targetEle;
targetEle = targetEle.parentElement;
Expand Down

0 comments on commit c8aad56

Please sign in to comment.