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: touchCache should be var or let, not const #34653

Merged
merged 4 commits into from
Jul 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update index.md
  • Loading branch information
ragul1697 committed Jul 6, 2024
commit 332aa5c09a8920dd89f8c1071a5c8528b844d821
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,10 @@ function handle_pinch_zoom(ev) {
ev.target.style.background = "green";
} else {
// empty tpCache
clearTouchCache();
tpCache.length = 0;
}
}
}

function clearTouchCache() {
tpCache.length = 0;
}
```

### Touch start handler
Expand Down