diff --git a/index.html b/index.html
index 8f85630..59e76e2 100644
--- a/index.html
+++ b/index.html
@@ -138,8 +138,8 @@
// bonzi cursor
['mousemove', 'touchstart', 'touchmove'].forEach(type => {
window.addEventListener(type, event => {
- document.getElementById('cursor').style.top = event.clientY + 'px';
- document.getElementById('cursor').style.left = event.clientX + 'px';
+ document.getElementById('cursor').style.top = (event.clientY || event.touches[0].clientY) + 'px';
+ document.getElementById('cursor').style.left = (event.clientY || event.touches[0].clientY) + 'px';
});
});