ninegrid2 6.710.0 → 6.711.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.
@@ -121133,14 +121133,13 @@ class nxSplitter extends HTMLElement {
121133
121133
 
121134
121134
 
121135
121135
  const onUp = (e) => {
121136
+
121137
+ const dragRect = dragBar.getBoundingClientRect();
121138
+
121136
121139
  window.removeEventListener("mousemove", onMove);
121137
121140
  window.removeEventListener("mouseup", onUp);
121138
121141
  dragBar.remove();
121139
121142
 
121140
- const prev = this.previousElementSibling;
121141
- const next = this.nextElementSibling;
121142
- if (!prev || !next) return;
121143
-
121144
121143
  this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
121145
121144
 
121146
121145
  // 기준: prev + next 너비 합계
@@ -121149,7 +121148,7 @@ class nxSplitter extends HTMLElement {
121149
121148
  : prev.offsetHeight + next.offsetHeight;
121150
121149
 
121151
121150
  // prev 기준 상대 거리 (드래그 거리)
121152
- const dragRect = dragBar.getBoundingClientRect();
121151
+
121153
121152
 
121154
121153
  const delta = this.#mode === "h"
121155
121154
  ? dragRect.left - prev.offsetLeft
@@ -121129,14 +121129,13 @@ class nxSplitter extends HTMLElement {
121129
121129
 
121130
121130
 
121131
121131
  const onUp = (e) => {
121132
+
121133
+ const dragRect = dragBar.getBoundingClientRect();
121134
+
121132
121135
  window.removeEventListener("mousemove", onMove);
121133
121136
  window.removeEventListener("mouseup", onUp);
121134
121137
  dragBar.remove();
121135
121138
 
121136
- const prev = this.previousElementSibling;
121137
- const next = this.nextElementSibling;
121138
- if (!prev || !next) return;
121139
-
121140
121139
  this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
121141
121140
 
121142
121141
  // 기준: prev + next 너비 합계
@@ -121145,7 +121144,7 @@ class nxSplitter extends HTMLElement {
121145
121144
  : prev.offsetHeight + next.offsetHeight;
121146
121145
 
121147
121146
  // prev 기준 상대 거리 (드래그 거리)
121148
- const dragRect = dragBar.getBoundingClientRect();
121147
+
121149
121148
 
121150
121149
  const delta = this.#mode === "h"
121151
121150
  ? dragRect.left - prev.offsetLeft
@@ -88,14 +88,13 @@ class nxSplitter extends HTMLElement {
88
88
 
89
89
 
90
90
  const onUp = (e) => {
91
+
92
+ const dragRect = dragBar.getBoundingClientRect();
93
+
91
94
  window.removeEventListener("mousemove", onMove);
92
95
  window.removeEventListener("mouseup", onUp);
93
96
  dragBar.remove();
94
97
 
95
- const prev = this.previousElementSibling;
96
- const next = this.nextElementSibling;
97
- if (!prev || !next) return;
98
-
99
98
  const splitterSize = this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
100
99
 
101
100
  // 기준: prev + next 너비 합계
@@ -104,7 +103,7 @@ class nxSplitter extends HTMLElement {
104
103
  : prev.offsetHeight + next.offsetHeight;
105
104
 
106
105
  // prev 기준 상대 거리 (드래그 거리)
107
- const dragRect = dragBar.getBoundingClientRect();
106
+
108
107
 
109
108
  const delta = this.#mode === "h"
110
109
  ? dragRect.left - prev.offsetLeft
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.710.0",
4
+ "version": "6.711.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -88,14 +88,13 @@ class nxSplitter extends HTMLElement {
88
88
 
89
89
 
90
90
  const onUp = (e) => {
91
+
92
+ const dragRect = dragBar.getBoundingClientRect();
93
+
91
94
  window.removeEventListener("mousemove", onMove);
92
95
  window.removeEventListener("mouseup", onUp);
93
96
  dragBar.remove();
94
97
 
95
- const prev = this.previousElementSibling;
96
- const next = this.nextElementSibling;
97
- if (!prev || !next) return;
98
-
99
98
  const splitterSize = this.#mode === "h" ? this.offsetWidth : this.offsetHeight;
100
99
 
101
100
  // 기준: prev + next 너비 합계
@@ -104,7 +103,7 @@ class nxSplitter extends HTMLElement {
104
103
  : prev.offsetHeight + next.offsetHeight;
105
104
 
106
105
  // prev 기준 상대 거리 (드래그 거리)
107
- const dragRect = dragBar.getBoundingClientRect();
106
+
108
107
 
109
108
  const delta = this.#mode === "h"
110
109
  ? dragRect.left - prev.offsetLeft