diff --git a/dist/js/LT.js b/dist/js/LT.js index 5b98305..6b70785 100644 --- a/dist/js/LT.js +++ b/dist/js/LT.js @@ -1,6 +1,15 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i { + if (freezeClick) { + e.stopPropagation(); + e.preventDefault(); + } +}, true); + class GameController { constructor(app) { // setup play/pause button @@ -613,11 +622,11 @@ class GameView { toggleLoading() { if (this.loadingContainer.classList.contains('active')) { this.loadingContainer.classList.remove('active'); - this.loadingContainer.style.pointerEvents = 'auto'; + freezeClick = false } else { this.loadingContainer.classList.add('active'); - this.loadingContainer.style.pointerEvents = 'none'; + freezeClick = true } } }