Skip to content

Commit 93f766f

Browse files
committed
Allow scroll to hide controls on mobile
1 parent 01e5c13 commit 93f766f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/less/preview/Preview.less

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ body {
1616
-webkit-text-size-adjust: none;
1717
/* prevent copy paste, to allow, change 'none' to 'text' */
1818
.user-select(none);
19+
position:absolute;
1920
background-color:#000;
2021
font-family: 'OpenSans', sans-serif;
2122
font-weight: lighter;
2223
font-size:12px;
23-
height:100%;
24+
height:200%; // hack for scroll-up hiding address bar
2425
margin:0px;
2526
padding:0px;
2627
color:white;
2728
width:100%;
2829
text-align: left;
30+
overflow: hidden;
2931
}
3032

3133
.drop-down {
@@ -72,7 +74,7 @@ body {
7274
{
7375
width:100%;
7476
margin-left:0;
75-
position:fixed;
77+
position:absolute;
7678
top:@uiHeight;
7779
bottom:0;
7880
left:0;
@@ -84,7 +86,7 @@ body {
8486

8587
#pausedScreen {
8688
z-index: 2;
87-
position: fixed;
89+
position: absolute;
8890
left: 0;
8991
top:0;
9092
bottom:0;

0 commit comments

Comments
 (0)