@tiptap/core
Advanced tools
Comparing version 2.0.0-beta.22 to 2.0.0-beta.23
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.23](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.22...@tiptap/core@2.0.0-beta.23) (2021-04-08) | ||
### Bug Fixes | ||
* improve drag position for node views ([5e5b8db](https://github.com/ueberdosis/tiptap-next/commit/5e5b8db6eb707aa570b462caf184401189228b02)) | ||
# [2.0.0-beta.22](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.21...@tiptap/core@2.0.0-beta.22) (2021-04-08) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@tiptap/core", | ||
"description": "headless rich text editor", | ||
"version": "2.0.0-beta.22", | ||
"version": "2.0.0-beta.23", | ||
"homepage": "https://tiptap.dev", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "992986bc46f7c3ba37692b4330e779a8cf164283" | ||
"gitHead": "6029d74f7979018b73f7f795e869c16d98ba3fb9" | ||
} |
@@ -70,4 +70,9 @@ import { Decoration, NodeView as ProseMirrorNodeView } from 'prosemirror-view' | ||
const domBox = this.dom.getBoundingClientRect() | ||
const handleBox = target.getBoundingClientRect() | ||
const x = handleBox.x - domBox.x | ||
const y = handleBox.y - domBox.y | ||
// sometimes `event.target` is not the `dom` element | ||
event.dataTransfer?.setDragImage(this.dom, 0, 0) | ||
event.dataTransfer?.setDragImage(this.dom, x, y) | ||
@@ -74,0 +79,0 @@ const selection = NodeSelection.create(view.state.doc, this.getPos()) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2438990
15920