Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/cjs/components/DragTracker.d.ts 505 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
  import { AxisOptionType, AxisType } from './Axis';
  import { WindowType } from './utils';
  export type PointerEventType = TouchEvent | MouseEvent;
  export type DragTrackerType = {
      pointerDown: (evt: PointerEventType) => number;
      pointerMove: (evt: PointerEventType) => number;
      pointerUp: (evt: PointerEventType) => number;
      readPoint: (evt: PointerEventType, evtAxis?: AxisOptionType) => number;
  };
  export declare function DragTracker(axis: AxisType, ownerWindow: WindowType): DragTrackerType;