Fix scrolling issues & swiperjs conflicts.

This commit is contained in:
2023-08-18 23:28:13 +03:00
parent 05c5697bc2
commit 51db3da072
17 changed files with 43 additions and 185 deletions
+2 -1
View File
@@ -65,7 +65,8 @@ function Responsive(props = {}) {
function updateController() {
let frameBreakpoint = breakpoint;
if (typeof frameBreakpoint !== 'string') {
frameBreakpoint = frameBreakpoint + 'px';
const scrollbarWidth = 15;
frameBreakpoint = (scrollbarWidth + frameBreakpoint) + 'px';
}
previewFrame.style.setProperty('--breakpoint', frameBreakpoint);