Skip to content

Commit 62b35b9

Browse files
committed
feat(fixedWindow): removed fixed window to prevent flickering and poor render preformance on iOS, replaced with touchhandling. Important: Scrolling now only works on the direct container of the widget
1 parent 25f4ed1 commit 62b35b9

40 files changed

+532
-912
lines changed

_layouts/default.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h3>Build-Status</h3>
9898
<script src="//cdn.polyfill.io/v1/polyfill.min.js" async defer></script>
9999
<script type="application/javascript" src="{{ site.baseurl }}/build/js/flexcss.min.js"></script>
100100
<script type="application/javascript">
101-
(function (document, window) {
101+
(function (document) {
102102
document.addEventListener('DOMContentLoaded', function () {
103103
// init all forms on this page
104104
FlexCss.Form.init('form', {scrollToElementDiff:50});
@@ -123,7 +123,7 @@ <h3>Build-Status</h3>
123123

124124
new FlexCss.LightBox(document.body, 'data-thumb', document.body).registerEvents();
125125
});
126-
})(document, window);
126+
})(document);
127127
</script>
128128
<div class="modal" id="impressum">
129129
<i data-close-modal class="modal-close icon-cancel-1"></i>

assets/lib/_fixedWindow.scss

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.fixed-window-open {
2+
html, body {
3+
overflow:hidden;
4+
}
25
body {
36
width: 100%;
47
}

assets/lib/_grid.scss

-8
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@
2121
margin: $topbarHeight auto 0 auto;
2222
}
2323

24-
html {
25-
&.modal-open.fixed-window-open {
26-
body {
27-
overflow: hidden;
28-
}
29-
}
30-
}
31-
3224
// Wrapper where all Content goes
3325
.content-wrapper {
3426
display: flex;

assets/lib/_modal.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
&:after {
4949
content: '';
50-
position: absolute;
50+
position: fixed;
5151
top: 0;
5252
left: 0;
5353
width: 100%;

assets/lib/_navigation.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Main Navigation Container, Off-Screen Navigation*/
22
.navbar-main {
3+
@include interface();
34
position: fixed;
45
height: 100%;
56
overflow-y: auto;

0 commit comments

Comments
 (0)