Skip to content

Commit

Permalink
build: bumps version
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamilenkovic committed Mar 11, 2024
1 parent 6b3acd6 commit 2a24456
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
6 changes: 1 addition & 5 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1416,15 +1416,11 @@ function handleDragoverNode(data) {
}
function handleScroll(parent, e) {
const rect = parent.getBoundingClientRect();
const { x, y } = eventCoordinates(e);
const { x } = eventCoordinates(e);
if (x > rect.right * 0.75) {
parent.scrollBy(10, 0);
} else if (x < rect.left + rect.width * 0.25) {
parent.scrollBy(-10, 0);
} else if (y > rect.bottom * 0.75) {
parent.scrollBy(0, 10);
} else if (y < rect.top + rect.height * 0.25) {
parent.scrollBy(0, -10);
}
}
function handleDragoverParent(eventData) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,15 +1336,11 @@ function handleDragoverNode(data) {
}
function handleScroll(parent, e) {
const rect = parent.getBoundingClientRect();
const { x, y } = eventCoordinates(e);
const { x } = eventCoordinates(e);
if (x > rect.right * 0.75) {
parent.scrollBy(10, 0);
} else if (x < rect.left + rect.width * 0.25) {
parent.scrollBy(-10, 0);
} else if (y > rect.bottom * 0.75) {
parent.scrollBy(0, 10);
} else if (y < rect.top + rect.height * 0.25) {
parent.scrollBy(0, -10);
}
}
function handleDragoverParent(eventData) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@formkit/drag-and-drop",
"version": "0.0.26",
"version": "0.0.27",
"description": "Drag and drop package.",
"main": "./index.cjs",
"types": "./index.d.cts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.26",
"version": "0.0.27",
"private": true,
"description": "Drag and drop package.",
"main": "./index.cjs",
Expand Down

0 comments on commit 2a24456

Please sign in to comment.