Type alias MouseDragEventHandler<T, Info>

MouseDragEventHandler<T, Info>: ((obj: T, event: MouseEvent, button: number, startLocation: Point, delta: Point, info: Info) => void)

Type Parameters

  • T

  • Info = {}

Type declaration

    • (obj: T, event: MouseEvent, button: number, startLocation: Point, delta: Point, info: Info): void
    • Event handler for mouse drag

      Parameters

      • obj: T

        Object

      • event: MouseEvent

        Browser MouseEvent that triggered the event

      • button: number

        Button that is being held down

      • startLocation: Point

        Start location of mouse

      • delta: Point

        Dragged delta

      • info: Info

      Returns void