ninegrid2 6.1071.0 → 6.1072.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.
@@ -121407,7 +121407,7 @@ class nxSplitter extends HTMLElement {
121407
121407
  const isHorizontal = this.#mode === "h";
121408
121408
 
121409
121409
  // 마우스 포인터와 스플리터 시작점 사이의 거리
121410
- isHorizontal
121410
+ const clickOffset = isHorizontal
121411
121411
  ? e.clientX - splitterRect.left
121412
121412
  : e.clientY - splitterRect.top;
121413
121413
 
@@ -121488,7 +121488,7 @@ class nxSplitter extends HTMLElement {
121488
121488
  const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
121489
121489
  const dragOffset = finalDragBarPos - initialSplitterPosInParent;
121490
121490
 
121491
- const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height;
121491
+ const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
121492
121492
  const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
121493
121493
 
121494
121494
  const newPrevSize = prevSize + dragOffset;
@@ -121403,7 +121403,7 @@ class nxSplitter extends HTMLElement {
121403
121403
  const isHorizontal = this.#mode === "h";
121404
121404
 
121405
121405
  // 마우스 포인터와 스플리터 시작점 사이의 거리
121406
- isHorizontal
121406
+ const clickOffset = isHorizontal
121407
121407
  ? e.clientX - splitterRect.left
121408
121408
  : e.clientY - splitterRect.top;
121409
121409
 
@@ -121484,7 +121484,7 @@ class nxSplitter extends HTMLElement {
121484
121484
  const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
121485
121485
  const dragOffset = finalDragBarPos - initialSplitterPosInParent;
121486
121486
 
121487
- const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height;
121487
+ const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
121488
121488
  const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
121489
121489
 
121490
121490
  const newPrevSize = prevSize + dragOffset;
@@ -121,7 +121,7 @@ class nxSplitter extends HTMLElement {
121
121
  const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
122
122
  const dragOffset = finalDragBarPos - initialSplitterPosInParent;
123
123
 
124
- const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height;
124
+ const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
125
125
  const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
126
126
 
127
127
  const newPrevSize = prevSize + dragOffset;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1071.0",
4
+ "version": "6.1072.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -121,7 +121,7 @@ class nxSplitter extends HTMLElement {
121
121
  const finalDragBarPos = isHorizontal ? parseFloat(dragBar.style.left) : parseFloat(dragBar.style.top);
122
122
  const dragOffset = finalDragBarPos - initialSplitterPosInParent;
123
123
 
124
- const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height;
124
+ const prevSize = isHorizontal ? prev.getBoundingClientRect().width : prev.getBoundingClientRect().height - clickOffset;
125
125
  const nextSize = isHorizontal ? next.getBoundingClientRect().width : next.getBoundingClientRect().height;
126
126
 
127
127
  const newPrevSize = prevSize + dragOffset;