Bladeren bron

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.
tags/v0.1.0
Fen Dweller 5 jaren geleden
bovenliggende
commit
0a8a750068
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: E80B35A6F11C3656
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      constants.js
  2. +1
    -1
      gorge.js

+ 1
- 1
constants.js Bestand weergeven

@@ -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"


+ 1
- 1
gorge.js Bestand weergeven

@@ -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*";


Laden…
Annuleren
Opslaan