ninegrid2 6.1021.0 → 6.1022.0

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.
@@ -121476,7 +121476,7 @@ class nxSplitter extends HTMLElement {
121476
121476
  window.removeEventListener("mouseup", onUp);
121477
121477
  dragBar.remove();
121478
121478
 
121479
- const finalDragBarPosInParent = isHorizontal
121479
+ const finalDragBarPosInParent = this.#mode === "h"
121480
121480
  ? parseFloat(dragBar.style.left)
121481
121481
  : parseFloat(dragBar.style.top);
121482
121482
 
@@ -121472,7 +121472,7 @@ class nxSplitter extends HTMLElement {
121472
121472
  window.removeEventListener("mouseup", onUp);
121473
121473
  dragBar.remove();
121474
121474
 
121475
- const finalDragBarPosInParent = isHorizontal
121475
+ const finalDragBarPosInParent = this.#mode === "h"
121476
121476
  ? parseFloat(dragBar.style.left)
121477
121477
  : parseFloat(dragBar.style.top);
121478
121478
 
@@ -109,7 +109,7 @@ class nxSplitter extends HTMLElement {
109
109
  window.removeEventListener("mouseup", onUp);
110
110
  dragBar.remove();
111
111
 
112
- const finalDragBarPosInParent = isHorizontal
112
+ const finalDragBarPosInParent = this.#mode === "h"
113
113
  ? parseFloat(dragBar.style.left)
114
114
  : parseFloat(dragBar.style.top);
115
115
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1021.0",
4
+ "version": "6.1022.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -109,7 +109,7 @@ class nxSplitter extends HTMLElement {
109
109
  window.removeEventListener("mouseup", onUp);
110
110
  dragBar.remove();
111
111
 
112
- const finalDragBarPosInParent = isHorizontal
112
+ const finalDragBarPosInParent = this.#mode === "h"
113
113
  ? parseFloat(dragBar.style.left)
114
114
  : parseFloat(dragBar.style.top);
115
115