From f6c8eb405582599ba4d6686c3c5eadd5b156e67e Mon Sep 17 00:00:00 2001 From: sgenoud Date: Fri, 5 Apr 2019 18:27:44 +0200 Subject: [PATCH] fix: Disable custom scrollbars by default on iOS (#1133) --- src/routes/_store/store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/_store/store.js b/src/routes/_store/store.js index 1d8560c2..b0f128c4 100644 --- a/src/routes/_store/store.js +++ b/src/routes/_store/store.js @@ -10,7 +10,8 @@ const persistedState = { currentInstance: null, currentRegisteredInstanceName: undefined, currentRegisteredInstance: undefined, - disableCustomScrollbars: false, + // we disable scrollbars by default on iOS + disableCustomScrollbars: process.browser && /iP(?:hone|ad|od)/.test(navigator.userAgent), disableHotkeys: false, disableLongAriaLabels: false, disableTapOnStatus: false,