Updated logic of mobile/tablet sizes & scrollbars.

This commit is contained in:
2024-06-23 20:18:16 -06:00
parent bcad45d1e8
commit 1b2cf2697f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ function Responsive(props = {}) {
function updateController() {
let frameBreakpoint = breakpoint;
if (typeof frameBreakpoint !== 'string') {
const scrollbarWidth = 15;
// const scrollbarWidth = 15; // Looks like browser's logic was changed and now scrollbar is not included in the width.
const scrollbarWidth = 0;
frameBreakpoint = (scrollbarWidth + frameBreakpoint) + 'px';
}