From 4946f5ccd5633d803b85294628ff5280e82945a8 Mon Sep 17 00:00:00 2001 From: Michael DiBernardo Date: Sun, 25 Aug 2024 15:48:33 -0400 Subject: [PATCH] Don't highlight rocks on touch. --- style.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 04d29dd..871401f 100644 --- a/style.css +++ b/style.css @@ -83,8 +83,8 @@ body { } #scrollable-area { - width: 5000px; - height: 5000px; + width: 50000px; + height: 50000px; background-image: url("./img/forest-tile-512x512.jpg"); background-repeat: repeat; } @@ -95,9 +95,14 @@ body { height: 256px; cursor: pointer; transition: all 0.5s ease-out; + -webkit-tap-highlight-color: transparent; + -webkit-touch-callout: none; + -webkit-user-select: none; + user-select: none; } .rock img { width: 100%; height: 100%; + pointer-events: none; }