UNPKG

@egjs/flicking

Version:

Everyday 30 million people experience. It's reliable, flexible and extendable carousel.

23 lines (22 loc) 635 B
import State from "./State"; /** * A state that activates when user's holding the Flicking area, but not moved a single pixel yet * @internal */ declare class HoldingState extends State { /** * Whether user is clicking or touching * @readonly */ readonly holding = true; /** * Whether Flicking's animating * @readonly */ readonly animating = false; private _releaseEvent; onChange(ctx: Parameters<State["onChange"]>[0]): void; onRelease(ctx: Parameters<State["onRelease"]>[0]): void; onFinish(ctx: Parameters<State["onFinish"]>[0]): void; } export default HoldingState;