Skip to content

Commit e2da768

Browse files
author
kirillmurashov
committed
fix #110
1 parent f0eec97 commit e2da768

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

package-lock.json

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-drag-resize",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "Vue Component for resize and drag elements",
55
"author": "Kirill Murashov <[email protected]>",
66
"main": "dist/index.js",

src/component/vue-drag-resize.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ export default {
397397
};
398398
},
399399

400-
stickDown(stick, ev) {
401-
if (!this.isResizable || !this.active) {
400+
stickDown(stick, ev, force = false) {
401+
if ((!this.isResizable || !this.active) && !force) {
402402
return;
403403
}
404404

@@ -793,7 +793,7 @@ export default {
793793
const stick = 'mr';
794794
const delta = oldVal - newVal;
795795

796-
this.stickDown(stick, { pageX: this.right, pageY: this.top + (this.height / 2) });
796+
this.stickDown(stick, { pageX: this.right, pageY: this.top + (this.height / 2) }, true);
797797
this.stickMove({ x: delta, y: 0 });
798798

799799
this.$nextTick(() => {
@@ -811,7 +811,7 @@ export default {
811811
const stick = 'bm';
812812
const delta = oldVal - newVal;
813813

814-
this.stickDown(stick, { pageX: this.left + (this.width / 2), pageY: this.bottom });
814+
this.stickDown(stick, { pageX: this.left + (this.width / 2), pageY: this.bottom }, true);
815815
this.stickMove({ x: 0, y: delta });
816816

817817
this.$nextTick(() => {

0 commit comments

Comments
 (0)