From 0fbe36e3fb4644945eeb0c142045a003e2793b19 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sat, 5 Oct 2019 23:21:28 +0200 Subject: Partially revert scrollbar handling on mobile, since its width-based and wrong Have to investigate as to whether it was actually needed on mobile, doesn't seem to be the case from Firefox's Responsive Design Mode --- app/javascript/flavours/glitch/util/scrollbar.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/javascript/flavours/glitch') diff --git a/app/javascript/flavours/glitch/util/scrollbar.js b/app/javascript/flavours/glitch/util/scrollbar.js index 6529b7906..929b036d6 100644 --- a/app/javascript/flavours/glitch/util/scrollbar.js +++ b/app/javascript/flavours/glitch/util/scrollbar.js @@ -1,5 +1,3 @@ -import { isMobile } from 'flavours/glitch/util/is_mobile'; - /** @type {number | null} */ let cachedScrollbarWidth = null; @@ -29,7 +27,7 @@ export const getScrollbarWidth = () => { return cachedScrollbarWidth; } - const scrollbarWidth = isMobile(window.innerWidth) ? 0 : getActualScrollbarWidth(); + const scrollbarWidth = getActualScrollbarWidth(); cachedScrollbarWidth = scrollbarWidth; return scrollbarWidth; -- cgit