cursorMoveEvent(game, e.target, e.touches[0].clientX, e.touches[0].clientY, true);
});
document.body.addEventListener('touchend', e => {
+ if(e.target.closest('.ui-container') && game.settings['controls'] != 'mouse' && ['gameplay', 'openingcutscene', 'endingcutscene'].includes(game.ui.currentPage)) {
+ game.ui.moveToPage('pause', true);
+ e.preventDefault();
+ }
if(game.settings['controls'] == 'thumbstick') {
cursorMoveEvent(game, e.target, 0, 0, false);
game.ui.virtualInput.inProgress = false;