diff --git a/package.json b/package.json index 495394cd64e5d5b1d645de9b47d0da29f0a0e21d..08dea251582e99642e76969f64b2b68142aa4241 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-draggable-grid", - "version": "0.4.0", + "version": "0.4.1", "scripts": { "build": "vite build", "example:build": "vite build example", diff --git a/src/DragGrid.vue b/src/DragGrid.vue index c5e18ea21076747b760afadee24de2621f7bb567..eb71fe1c81c218b482b7afabf784290d6874e8b5 100644 --- a/src/DragGrid.vue +++ b/src/DragGrid.vue @@ -144,7 +144,7 @@ export default { }, methods: { positionAllowed(x, y, key) { - if (x < 0 || y < 0) return false; + if (x <= 0 || y <= 0) return false; if (x > this.cols) return false; if (y > this.rows) return false;