diff --git a/lib/helpers/fixTma.ts b/lib/helpers/fixTma.ts index 14fcd2c..ee92f9e 100644 --- a/lib/helpers/fixTma.ts +++ b/lib/helpers/fixTma.ts @@ -2,10 +2,6 @@ const options = { passive: false } let ts: any let scrollableEl: HTMLElement | null -function ignore(e: TouchEvent) { - e.preventDefault() -} - function onTouchStart(e: TouchEvent) { ts = e.touches[0].clientY } @@ -43,14 +39,10 @@ export function fixTma(el: HTMLElement | null) { window.addEventListener('scroll', onScroll) document.documentElement.addEventListener('touchstart', onTouchStart, options) document.documentElement.addEventListener('touchmove', onTouchMove, options) - document.body.addEventListener('touchcancel', ignore, options) - document.body.addEventListener('touchend', ignore, options) } export function unfixTma() { window.removeEventListener('scroll', onScroll) document.documentElement.removeEventListener('touchstart', onTouchStart) document.documentElement.removeEventListener('touchmove', onTouchMove) - document.body.removeEventListener('touchcancel', ignore) - document.body.removeEventListener('touchend', ignore) } diff --git a/package.json b/package.json index abb1e98..0b610c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kolirt/vue-telegram-mini-app", - "version": "0.0.4", + "version": "0.0.5", "type": "module", "description": "Vue 3 telegram mini app package", "author": "kolirt",