UNPKG

unika-components

Version:

Unika Vue3 components library

11 lines (10 loc) 474 B
import { Ref } from 'vue'; import { PageData } from '../defaultProps'; export declare function useTouchHandler(pages: Ref<PageData[]>, currentPageId: Ref<string>, deltaY: Ref<number>): { handleTouchStart: (e: TouchEvent) => void; handleTouchMove: (e: TouchEvent) => void; handleTouchEnd: (e: TouchEvent) => void; handleMouseDown: (e: MouseEvent) => void; handleMouseMove: (e: MouseEvent) => void; handleMouseUp: (e: MouseEvent) => void; };