Skip to content

Commit

Permalink
Fix used offset when clicking on the image
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Dec 26, 2023
1 parent af45fbc commit 11c3e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme_153957/templates/base.html
Expand Up @@ -131,7 +131,7 @@
if (event.currentTarget.querySelector(':target video')) {
return false
}
const offset = event.offsetX - (event.currentTarget.offsetWidth / 2)
const offset = event.offsetX - (event.target.offsetWidth / 2)
const deadzone = 20
if (offset > deadzone) {
rightHandler()
Expand Down

0 comments on commit 11c3e24

Please sign in to comment.