|
|
@ -183,10 +183,14 @@ console.timeEnd('get storage1'); */ |
|
|
|
//if(e.target === document.documentElement || e.target === document.body) e.preventDefault();
|
|
|
|
//if(e.target === document.documentElement || e.target === document.body) e.preventDefault();
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let isOpened = false;
|
|
|
|
document.addEventListener('focusin', (e) => { |
|
|
|
document.addEventListener('focusin', (e) => { |
|
|
|
if(!setViewportVH) return; |
|
|
|
if(!setViewportVH) return; |
|
|
|
//console.log('focusin');
|
|
|
|
//console.log('focusin');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// isOpened = true;
|
|
|
|
|
|
|
|
// document.body.classList.add('is-keyboard-opened');
|
|
|
|
|
|
|
|
|
|
|
|
fixSafariStickyInput(e.target as HTMLElement); |
|
|
|
fixSafariStickyInput(e.target as HTMLElement); |
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener('touchmove', onTouchMove, o); |
|
|
|
document.addEventListener('touchmove', onTouchMove, o); |
|
|
@ -200,6 +204,11 @@ console.timeEnd('get storage1'); */ |
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener('focusout', () => { |
|
|
|
document.addEventListener('focusout', () => { |
|
|
|
document.removeEventListener('touchmove', onTouchMove, o); |
|
|
|
document.removeEventListener('touchmove', onTouchMove, o); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(isOpened) {
|
|
|
|
|
|
|
|
// isOpened = false;
|
|
|
|
|
|
|
|
// document.body.classList.remove('is-keyboard-opened');
|
|
|
|
|
|
|
|
// }
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener('visibilitychange', () => { |
|
|
|
document.addEventListener('visibilitychange', () => { |
|
|
|