From 0bb82478229b19adae998b9a32b05bcaa4ed0a4f Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 28 Mar 2019 15:50:53 -0400 Subject: fix double scrollbar display bug in mobile --- src/App.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index e72c73e3..87f00989 100644 --- a/src/App.js +++ b/src/App.js @@ -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 -- cgit v1.2.3-70-g09d2