changed event x, y coordinates

pull/95/head
Chris Claude 3 years ago
parent f682234a3c
commit 95d32b56cc

@ -2,8 +2,8 @@ const buttons = document.querySelectorAll('.ripple')
buttons.forEach(button => {
button.addEventListener('click', function (e) {
const x = e.clientX
const y = e.clientY
const x = e.pageX
const y = e.pageY
const buttonTop = e.target.offsetTop
const buttonLeft = e.target.offsetLeft

Loading…
Cancel
Save