Skip to content

Commit

Permalink
Merge pull request #357 from Zekiah-A/main
Browse files Browse the repository at this point in the history
FINALLY - Fix touchpad zoom interference on laptop
  • Loading branch information
Zekiah-A authored Nov 18, 2024
2 parents 74535dc + 0b93772 commit 92adfce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions censors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# game imaginable, but should help to catch the majority of cases where a user is not intentionally
# attempting to circumvent the system.

# General symbols / nuisances / controversial topics
# General symbols / nuisances / websites / controversial topics
𓂸
Expand All @@ -22,7 +22,6 @@ kiwifarms
soyjak\.?party
4chan


# English
[a4]n[a4]l
[a4]rse
Expand Down Expand Up @@ -103,4 +102,4 @@ vittu

# Chinese
傻逼
傻逼
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@
<link rel="apple-touch-icon" href="favicon.png">
<meta name="apple-mobile-web-app-title" content="place">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="style.css?v=351" rel="stylesheet"> <!-- Increment the CSS query, such as ?v=1.x every time CSS is changed in order to force clients to refresh their stylesheets. Otherwise broken CSS may occur-->
<title>place</title>
<link rel="icon" type="image/x-icon" href="favicon.png">
Expand Down Expand Up @@ -3071,11 +3071,11 @@ <h4>Quest complete! 🥳</h4>
if (!mobile) {
function cancelZoomGesture(e) {
e.preventDefault()
document.body.style.zoom = 1
}
document.addEventListener("gesturestart", cancelZoomGesture)
document.addEventListener("gesturechange", cancelZoomGesture)
document.addEventListener("gestureend", cancelZoomGesture)
window.addEventListener("wheel", cancelZoomGesture, { passive: false })
window.addEventListener("gesturestart", cancelZoomGesture)
window.addEventListener("gesturechange", cancelZoomGesture)
window.addEventListener("gestureend", cancelZoomGesture)
}

setTimeout(() => {
Expand Down

0 comments on commit 92adfce

Please sign in to comment.