prosemirror-tables
Advanced tools
Comparing version 1.3.5 to 1.3.6
{ | ||
"name": "prosemirror-tables", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "ProseMirror's rowspan/colspan tables component", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -179,2 +179,4 @@ import { Attrs, Node as ProsemirrorNode } from 'prosemirror-model'; | ||
): boolean { | ||
const win = view.dom.ownerDocument.defaultView ?? window; | ||
const pluginState = columnResizingPluginKey.getState(view.state); | ||
@@ -193,4 +195,4 @@ if (!pluginState || pluginState.activeHandle == -1 || pluginState.dragging) | ||
function finish(event: MouseEvent) { | ||
window.removeEventListener('mouseup', finish); | ||
window.removeEventListener('mousemove', move); | ||
win.removeEventListener('mouseup', finish); | ||
win.removeEventListener('mousemove', move); | ||
const pluginState = columnResizingPluginKey.getState(view.state); | ||
@@ -219,4 +221,4 @@ if (pluginState?.dragging) { | ||
window.addEventListener('mouseup', finish); | ||
window.addEventListener('mousemove', move); | ||
win.addEventListener('mouseup', finish); | ||
win.addEventListener('mousemove', move); | ||
event.preventDefault(); | ||
@@ -223,0 +225,0 @@ return true; |
124453
25
3487