# Interface DragEvent<T>

currentTarget - a reference to the element on which the event listener is registered.

target - a reference to the element from which the event was originally dispatched. This might be a child element to the element on which the event listener is registered. If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682

interface DragEvent<T> {
altKey: boolean;
bubbles: boolean;
button: number;
buttons: number;
cancelable: boolean;
clientX: number;
clientY: number;
ctrlKey: boolean;
currentTarget: EventTarget & T;
dataTransfer: DataTransfer;
defaultPrevented: boolean;
detail: number;
eventPhase: number;
isTrusted: boolean;
metaKey: boolean;
movementX: number;
movementY: number;
nativeEvent: DragEvent;
pageX: number;
pageY: number;
relatedTarget: EventTarget;
screenX: number;
screenY: number;
shiftKey: boolean;
target: EventTarget;
timeStamp: number;
type: string;
view: AbstractView;
getModifierState(key): boolean;
isDefaultPrevented(): boolean;
isPropagationStopped(): boolean;
persist(): void;
preventDefault(): void;
stopPropagation(): void;
}

#### Type Parameters

- T = Element

#### Hierarchy (view full)

- MouseEvent<T, NativeDragEvent>
  - DragEvent

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2206

#####
Index

### Properties

altKey
bubbles
button
buttons
cancelable
clientX
clientY
ctrlKey
currentTarget
dataTransfer
defaultPrevented
detail
eventPhase
isTrusted
metaKey
movementX
movementY
nativeEvent
pageX
pageY
relatedTarget
screenX
screenY
shiftKey
target
timeStamp
type
view

### Methods

getModifierState
isDefaultPrevented
isPropagationStopped
persist
preventDefault
stopPropagation

## Properties

### altKey

altKey: boolean

Inherited from MouseEvent.altKey

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2281

### bubbles

bubbles: boolean

Inherited from MouseEvent.bubbles

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2175

### button

button: number

Inherited from MouseEvent.button

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2282

### buttons

buttons: number

Inherited from MouseEvent.buttons

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2283

### cancelable

cancelable: boolean

Inherited from MouseEvent.cancelable

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2176

### clientX

clientX: number

Inherited from MouseEvent.clientX

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2284

### clientY

clientY: number

Inherited from MouseEvent.clientY

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2285

### ctrlKey

ctrlKey: boolean

Inherited from MouseEvent.ctrlKey

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2286

### currentTarget

currentTarget: EventTarget & T

Inherited from MouseEvent.currentTarget

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2173

### dataTransfer

dataTransfer: DataTransfer

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2207

### defaultPrevented

defaultPrevented: boolean

Inherited from MouseEvent.defaultPrevented

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2177

### detail

detail: number

Inherited from MouseEvent.detail

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2317

### eventPhase

eventPhase: number

Inherited from MouseEvent.eventPhase

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2178

### isTrusted

isTrusted: boolean

Inherited from MouseEvent.isTrusted

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2179

### metaKey

metaKey: boolean

Inherited from MouseEvent.metaKey

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2291

### movementX

movementX: number

Inherited from MouseEvent.movementX

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2292

### movementY

movementY: number

Inherited from MouseEvent.movementY

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2293

### nativeEvent

nativeEvent: DragEvent

Inherited from MouseEvent.nativeEvent

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2172

### pageX

pageX: number

Inherited from MouseEvent.pageX

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2294

### pageY

pageY: number

Inherited from MouseEvent.pageY

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2295

### relatedTarget

relatedTarget: EventTarget

Inherited from MouseEvent.relatedTarget

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2296

### screenX

screenX: number

Inherited from MouseEvent.screenX

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2297

### screenY

screenY: number

Inherited from MouseEvent.screenY

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2298

### shiftKey

shiftKey: boolean

Inherited from MouseEvent.shiftKey

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2299

### target

target: EventTarget

Inherited from MouseEvent.target

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2174

### timeStamp

timeStamp: number

Inherited from MouseEvent.timeStamp

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2185

### type

type: string

Inherited from MouseEvent.type

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2186

### view

view: AbstractView

Inherited from MouseEvent.view

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2318

## Methods

### getModifierState

- getModifierState(key): boolean

- See DOM Level 3 Events spec. for a list of valid (case-sensitive) arguments to this method.

  #### Parameters

  - key: ModifierKey

  #### Returns boolean

  Inherited from MouseEvent.getModifierState

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2290

### isDefaultPrevented

- isDefaultPrevented(): boolean

- #### Returns boolean

  Inherited from MouseEvent.isDefaultPrevented

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2181

### isPropagationStopped

- isPropagationStopped(): boolean

- #### Returns boolean

  Inherited from MouseEvent.isPropagationStopped

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2183

### persist

- persist(): void

- #### Returns void

  Inherited from MouseEvent.persist

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2184

### preventDefault

- preventDefault(): void

- #### Returns void

  Inherited from MouseEvent.preventDefault

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2180

### stopPropagation

- stopPropagation(): void

- #### Returns void

  Inherited from MouseEvent.stopPropagation

  - Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:2182