Parcourir la source

Wait 200ms before dragging, not 100ms

tags/v0.0.1
Fen Dweller il y a 5 ans
Parent
révision
fe12131393
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      macrovision.js

+ 1
- 1
macrovision.js Voir le fichier

@@ -188,7 +188,7 @@ function clickDown(e) {
let entY = document.querySelector("#entities").getBoundingClientRect().y;
dragOffsetX = e.clientX - rect.left + entX - rect.width / 2;
dragOffsetY = e.clientY - rect.top + entY - rect.height;
clickTimeout = setTimeout(() => { dragging = true }, 100)
clickTimeout = setTimeout(() => { dragging = true }, 200)
}

function clickUp() {


Chargement…
Annuler
Enregistrer