Преглед изворни кода

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 година
родитељ
комит
0a8a750068
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
2 измењених фајлова са 2 додато и 2 уклоњено
  1. +1
    -1
      constants.js
  2. +1
    -1
      gorge.js

+ 1
- 1
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"


+ 1
- 1
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*";


Loading…
Откажи
Сачувај