useFrameWheel.d.ts 489 B

12345678910
  1. interface FireFoxDOMMouseScrollEvent {
  2. detail: number;
  3. preventDefault: VoidFunction;
  4. }
  5. export default function useFrameWheel(inVirtual: boolean, isScrollAtTop: boolean, isScrollAtBottom: boolean, isScrollAtLeft: boolean, isScrollAtRight: boolean, horizontalScroll: boolean,
  6. /***
  7. * Return `true` when you need to prevent default event
  8. */
  9. onWheelDelta: (offset: number, horizontal: boolean) => void): [(e: WheelEvent) => void, (e: FireFoxDOMMouseScrollEvent) => void];
  10. export {};