From 1f36bc4cb0e3deef283852b8b502856d7c640ec6 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Wed, 9 Aug 2023 12:48:05 -0700 Subject: [PATCH] Change from touchend to touchstart, and from click to mousedown. --- character/mobile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/character/mobile.js b/character/mobile.js index 476906739..1fd658b8d 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -6237,12 +6237,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ speed=-4; } }; - document.addEventListener(lib.config.touchscreen?'touchend':'click',fly); + document.addEventListener(lib.config.touchscreen?'touchstart':'mousedown',fly); event.settle=function(){ clearInterval(event.fly); clearInterval(event.addPipe); - document.removeEventListener(lib.config.touchscreen?'touchend':'click',fly); + document.removeEventListener(lib.config.touchscreen?'touchstart':'mousedown',fly); setTimeout(function(){ event.switchToAuto() },1000); @@ -8341,7 +8341,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(event.zhengjing.length){ var card=ui.create.card(ui.special,'noclick',true); card.init(['','',event.zhengjing.shift()]); - card.addEventListener(lib.config.touchscreen?'touchend':'click',click); + card.addEventListener(lib.config.touchscreen?'touchstart':'mousedown',click); event.zhengjing_nodes.push(card); card.style.position='absolute'; var rand1=Math.round(Math.random()*100);