fix double scrollbar display bug in mobile

This commit is contained in:
taehoon 2019-03-28 15:50:53 -04:00
parent e97f8a4728
commit 0bb8247822
4 changed files with 22 additions and 4 deletions

View file

@ -39,7 +39,14 @@ export default {
window.CSS.supports('-moz-mask-size', 'contain') ||
window.CSS.supports('-ms-mask-size', 'contain') ||
window.CSS.supports('-o-mask-size', 'contain')
)
),
isMobile: navigator.userAgent.match(/Android/i) ||
navigator.userAgent.match(/webOS/i) ||
navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/iPod/i) ||
navigator.userAgent.match(/BlackBerry/i) ||
navigator.userAgent.match(/Windows Phone/i)
}),
created () {
// Load the locale from the storage