Skip to content

Commit

Permalink
Fix iframe behavior on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Feb 5, 2016
1 parent de6a34e commit 4876fa3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
8 changes: 6 additions & 2 deletions dist/lity.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Lity - v1.6.0 - 2016-01-11
/*! Lity - v1.6.0 - 2016-02-05
* http://sorgalla.com/lity/
* Copyright (c) 2016 Jan Sorgalla; Licensed MIT */
.lity {
Expand Down Expand Up @@ -171,8 +171,12 @@
.lity-iframe-container {
width: 100%;
height: 0;
overflow: hidden;
padding-top: 56.25%;
overflow: auto;
pointer-events: auto;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-overflow-scrolling: touch;
}
.lity-iframe-container iframe {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion dist/lity.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Lity - v1.6.0 - 2016-01-11
/*! Lity - v1.6.0 - 2016-02-05
* http://sorgalla.com/lity/
* Copyright (c) 2016 Jan Sorgalla; Licensed MIT */
(function(window, factory) {
Expand Down
4 changes: 2 additions & 2 deletions dist/lity.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lity.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/lity.less
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,11 @@
.lity-iframe-container {
width: 100%;
height: 0;
overflow: hidden;
padding-top: @lity-iframe-ratio * 100%;
overflow: auto;
pointer-events: auto;
transform: translateZ(0);
-webkit-overflow-scrolling: touch;

iframe {
position: absolute;
Expand Down

0 comments on commit 4876fa3

Please sign in to comment.