Skip to content

Commit 14b8098

Browse files
author
Alexander Galaydyuk
committed
update dist to actual state
1 parent ea60cc0 commit 14b8098

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dist/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,15 @@
491491
created: function() {
492492
window.addEventListener("resize", this.getWindowSize), this.getWindowSize();
493493
},
494+
mounted: function() {
495+
this.getWindowSize();
496+
},
494497
beforeDestroy: function() {
495498
window.removeEventListener("resize", this.getWindowSize);
496499
},
497500
methods: {
498501
getWindowSize: function() {
499-
this.windowHeight = window.innerHeight, this.windowWidth = window.innerWidth;
502+
this.$el && (this.windowHeight = this.$el.clientHeight, this.windowWidth = this.$el.clientWidth);
500503
}
501504
}
502505
};
@@ -558,7 +561,7 @@
558561
on: {
559562
mousedown: _vm.mousedown,
560563
touchstart: function($event) {
561-
$event.stopPropagation(), _vm.mousedown($event);
564+
return $event.stopPropagation(), _vm.mousedown($event);
562565
}
563566
}
564567
}, [ _vm._t("default") ], 2);

0 commit comments

Comments
 (0)