Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
14 lines
495 B
Plaintext
14 lines
495 B
Plaintext
import type { BasicTarget } from '../utils/domTarget';
|
|
type EventType = MouseEvent | TouchEvent;
|
|
export interface Options {
|
|
delay?: number;
|
|
moveThreshold?: {
|
|
x?: number;
|
|
y?: number;
|
|
};
|
|
onClick?: (event: EventType) => void;
|
|
onLongPressEnd?: (event: EventType) => void;
|
|
}
|
|
declare function useLongPress(onLongPress: (event: EventType) => void, target: BasicTarget, { delay, moveThreshold, onClick, onLongPressEnd }?: Options): void;
|
|
export default useLongPress;
|