Commits

Eric Fredricksen  committed 31e797c

Prevent double-click from selecting text in inventory

  • Participants
  • Parent commits a1e59a8

Comments (0)

Files changed (1)

   var crafted = makeItemSlot('crafted');
   crafted.style.left = 240 + 58 * 4 + 'px';
   crafted.style.top = 16 + 58 * 1 + 'px';
-  crafted.addEventListener('mousedown', function () {
+  crafted.addEventListener('mousedown', function (e) {
+    e.preventDefault();
     if (!CRAFTABLE) return;
     for (var i = 0; i < 9; ++i)
       if (CRAFT[i] && CRAFT[i].qty)