@themarioga/grid-editor 9.2.0 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/js/grideditor.js
CHANGED
|
@@ -1797,6 +1797,12 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1797
1797
|
|
|
1798
1798
|
if (!helper) { return; }
|
|
1799
1799
|
|
|
1800
|
+
// Where it lands is read before the canvas closes up: the
|
|
1801
|
+
// marker and the opened gaps take room, and once they go the
|
|
1802
|
+
// pointer may be over another region - the bottom of a column
|
|
1803
|
+
// in a tab, say, becomes the column the tabs are in
|
|
1804
|
+
var where = dropPlaceAt(up.pageX, up.pageY);
|
|
1805
|
+
|
|
1800
1806
|
helper.remove();
|
|
1801
1807
|
dom.removeClass(canvas, 'ge-dropping');
|
|
1802
1808
|
hideDropMarker();
|
|
@@ -1814,7 +1820,6 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1814
1820
|
// nothing to swallow: the next click is a click
|
|
1815
1821
|
window.setTimeout(function() { window.removeEventListener('click', swallow, { capture: true }); }, 0);
|
|
1816
1822
|
|
|
1817
|
-
var where = dropPlaceAt(up.pageX, up.pageY);
|
|
1818
1823
|
if (where) { insertFromToolbar(button, where); }
|
|
1819
1824
|
}
|
|
1820
1825
|
|