Use window innerWidth for measurements

pull/37/head
Varun Patil 2022-08-21 04:15:01 +00:00
parent 2663d00330
commit 200bf8c17d
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ export default {
this.$refs.scroller.$el.style.height = (height - 4) + 'px'; this.$refs.scroller.$el.style.height = (height - 4) + 'px';
// Mobile devices // Mobile devices
if (width < 768) { if (window.innerWidth <= 768) {
width += 10; width += 10;
this.isMobile = true; this.isMobile = true;
} else { } else {