Commit 77ba0131 authored by Anton's avatar Anton

Replace deprecated event.srcElement with event.target

parent 95691431
......@@ -214,7 +214,7 @@
event.dataTransfer.setData('text/plain', JSON.stringify(cell))
event.dataTransfer.setDragImage(nullImage, 0, 0)
let elContainerBoundingBox = this.$el.getBoundingClientRect()
let elBoundingBox = event.srcElement.getBoundingClientRect()
let elBoundingBox = event.target.getBoundingClientRect()
let offset = {
x: (event.clientX - elContainerBoundingBox.x) - (elBoundingBox.x - elContainerBoundingBox.x),
y: (event.clientY - elContainerBoundingBox.y) - (elBoundingBox.y - elContainerBoundingBox.y)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment