Skip to content

Instantly share code, notes, and snippets.

@ryota-murakami
Created July 18, 2020 04:39
Show Gist options
  • Select an option

  • Save ryota-murakami/3246368bbbb547e5f3e9441c9384b4dc to your computer and use it in GitHub Desktop.

Select an option

Save ryota-murakami/3246368bbbb547e5f3e9441c9384b4dc to your computer and use it in GitHub Desktop.
DragEvent
var e = {
altKey: false
bubbles: true
button: 0
buttons: 1
cancelBubble: false
cancelable: true
clientX: 341
clientY: 601
composed: true
ctrlKey: false
currentTarget: div
dataTransfer: DataTransfer {dropEffect: "none", effectAllowed: "uninitialized", items: DataTransferItemList, types: Array(0), files: FileList}
defaultPrevented: false
detail: 0
eventPhase: 2
fromElement: null
isTrusted: true
layerX: 117
layerY: 45
metaKey: false
movementX: 0
movementY: 0
offsetX: 25
offsetY: 44
pageX: 341
pageY: 601
path: (10) [div, div, div, div, div, div#root, body, html, document, Window]
relatedTarget: null
returnValue: true
screenX: 341
screenY: 736
shiftKey: false
sourceCapabilities: InputDeviceCapabilities {firesTouchEvents: false}
srcElement: div
target: div
timeStamp: 103963.99499999825
toElement: div
type: "dragstart"
view: Window {parent: Window, opener: null, top: Window, length: 0, frames: Window, …}
which: 1
x: 341
y: 601
__proto__: DragEvent
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment