Skip to content

Commit

Permalink
utils_appStateList_KLM
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Aug 18, 2024
1 parent c546b12 commit 1cbc07a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dist/neodigm55__v3_5.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,15 @@ const neodigmUtils = ( ( _d ) =>{
}, true )
//document[ neodigmOpt.N55_APP_STATE.CONTEXT ].addEventListener( "click", ( ev ) =>{
NeodigmKeylime.subscribe( "click", ( ev )=>{
console.log("~~~~~~~ click appState | " , ev )
if( !neodigmOpt.N55_APP_STATE.FIRST_TAP ){ neodigmOpt.N55_APP_STATE.FIRST_TAP = true }
if( neodigmOpt.neodigmTulip ) neodigmTulip.close() // TODO refact into class pub/sub emit?
if( neodigmOpt.neodigmTulip ) neodigmTulip.close()
let evAtr = neodigmUtils.walkDOM3( ev?.target, "n55TypeonClick" )
if( evAtr ) neodigmUtils.typeOn( JSON.parse( evAtr ) )
}, true )
//document[ neodigmOpt.N55_APP_STATE.CONTEXT ].addEventListener( "touchstart", ( ev ) =>{
NeodigmKeylime.subscribe( "touchstart", ( ev )=>{
if( !neodigmOpt.N55_APP_STATE.FIRST_TAP ){ neodigmOpt.N55_APP_STATE.FIRST_TAP = true }
if( neodigmOpt.neodigmTulip ) neodigmTulip.close() // TODO refact into class pub/sub emit?
if( neodigmOpt.neodigmTulip ) neodigmTulip.close()
}, true )
window.addEventListener( "resize", ( ev ) =>{
//NeodigmKeylime.subscribe( "resize", ( ev )=>{
Expand Down

0 comments on commit 1cbc07a

Please sign in to comment.