From 0a8a750068a302385cd64fe43e7e85c2efe083c8 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 28 Dec 2019 16:30:48 -0600 Subject: [PATCH] Fix typo. Use mousedown instead of click The big button shrinks a bit when clicked. This could make the cursor fall off of it when clicking near the edge. I will probably fix this later by handling the resulting mouseup no matter where it is. --- constants.js | 2 +- gorge.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants.js b/constants.js index cc5fc64..456f097 100644 --- a/constants.js +++ b/constants.js @@ -1344,7 +1344,7 @@ const newsFoodRateText = [ state => "You're hungry enough to eat a whole person" ], [ - state => "You're hungry eonugh to eat a whole bunch of people" + state => "You're hungry enough to eat a whole bunch of people" ], [ state => "You're hungry enough to eat a LOT of people" diff --git a/gorge.js b/gorge.js index 41f7ddd..367cde4 100644 --- a/gorge.js +++ b/gorge.js @@ -685,7 +685,7 @@ function initializeData() { } function registerListeners() { - document.querySelector("#tasty-micro").addEventListener("click", (e) => { + document.querySelector("#tasty-micro").addEventListener("mousedown", (e) => { const add = eatPrey(); const text = "+" + render(round(add, 1), 3) + " food"; const gulp = "*glp*";