Skip to content

Commit a8c3af5

Browse files
committed
Transparent overlay touches support
1 parent d08f4d3 commit a8c3af5

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

dist/device-mockups.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* html5-device-mockups (https://github.com/pixelsign/html5-device-mockups)
33
* Copyright 2013 - 2018 pixelsign
44
* Licensed under MIT (https://github.com/pixelsign/html5-device-mockups/blob/master/LICENSE.txt)
5-
* Last Build: Thu Dec 20 2018 13:39:13
5+
* Last Build: Thu Dec 20 2018 14:05:50
66
*/
77
.device-wrapper {
88
max-width: 300px;
@@ -15,11 +15,12 @@
1515
position: absolute;
1616
background-size: cover;
1717
width: 100%;
18-
height: 100%; }
18+
height: 100%;
19+
pointer-events: none; }
1920
.device .screen {
2021
position: absolute;
2122
background-size: cover;
22-
pointer-events: none; }
23+
pointer-events: auto; }
2324
.device .button {
2425
position: absolute;
2526
cursor: pointer; }

dist/device-mockups.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
<div class="device-wrapper">
1616
<div class="device" data-device="iPhoneX" data-orientation="portrait" data-color="black">
17-
<div class="screen">
18-
</div>
17+
<div class="screen"></div>
1918
<div class="button"></div>
2019
</div>
2120
</div>

src/scss/general.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ $mockup-path: '../device-mockups' !default;
1414
background-size: cover;
1515
width: 100%;
1616
height: 100%;
17+
pointer-events: none;
1718
}
1819

1920
.screen {
2021
position: absolute;
2122
background-size: cover;
22-
pointer-events: none;
23+
pointer-events: auto;
2324
}
2425

2526

0 commit comments

Comments
 (0)