about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-10-05 23:21:28 +0200
committerThibaut Girka <thib@sitedethib.com>2019-10-06 00:32:06 +0200
commit0fbe36e3fb4644945eeb0c142045a003e2793b19 (patch)
tree79e8fa613494ae37fe2adfb41bf9ba38f0ffd80d /app/javascript
parentfe6864a73a4f580738d40010162464a92c68ff42 (diff)
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
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/flavours/glitch/util/scrollbar.js4
1 files changed, 1 insertions, 3 deletions
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;