Pull the content down to refresh.
diff --git a/dist/framework-with-theme.css b/dist/framework-with-theme.css index c73ba6ff50..96144c58e3 100644 --- a/dist/framework-with-theme.css +++ b/dist/framework-with-theme.css @@ -66,6 +66,18 @@ main > * { .show { display: block; } +.ptr-capable { + -webkit-user-drag: element; } + +.ptr-content { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + overflow: auto; + height: 0; } + .button { position: relative; display: block; @@ -129,7 +141,7 @@ main > * { /* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab. Note: For these to work, content must come after both bars in the markup */ -.bar-header ~ main { +.bar-header ~ main, .has-header { top: 50px; } .has-footer { @@ -487,3 +499,6 @@ a.list-item { a.list-item { color: #333333; } + +.ptr-content { + background: #eee; } diff --git a/example/pull-to-refresh.html b/example/pull-to-refresh.html index c08adb06b3..e3397b1b0a 100644 --- a/example/pull-to-refresh.html +++ b/example/pull-to-refresh.html @@ -17,10 +17,15 @@
Pull the content down to refresh.