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
This commit is contained in:
parent
263f51edd1
commit
8eeb4f612c
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue