We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e499ccb commit a7a8135Copy full SHA for a7a8135
public/js/fireworks.js
@@ -57,10 +57,10 @@ function createFireworks({ config, anime }) {
57
function updateCoords(e) {
58
pointerX =
59
e.clientX ||
60
- (e.touches[0] ? e.touches[0].clientX : e.changedTouches[0].clientX)
+ (e?.touches[0] ? e.touches[0].clientX : e.changedTouches[0].clientX)
61
pointerY =
62
e.clientY ||
63
- (e.touches[0] ? e.touches[0].clientY : e.changedTouches[0].clientY)
+ (e?.touches[0] ? e.touches[0].clientY : e.changedTouches[0].clientY)
64
}
65
66
function setParticuleDirection(p) {
0 commit comments