UNPKG

@deepkolos/electron-trackpad-utils

Version:

Trigger trackpad haptic feedback and get trackpad scroll began, scroll ended, and force click events in Electron on macOS.

17 lines (16 loc) 527 B
declare module "@deepkolos/electron-trackpad-utils" { export function onTrackpadScrollBegan(callback: () => void): void; export function onTrackpadScrollEnded(callback: () => void): void; export function onGesture(callback: (event: { deltaX: number, deltaY: number, isTrackpad: boolean, isScroll: boolean, isScale: boolean, isRotate: boolean, magnification: number, deltaAngle: number }) => void): void; export function onForceClick(callback: () => void): void; export function triggerFeedback(): void; }