Permalink
Browse files

* Fix scrolling speed on retina display

  • Loading branch information...
1 parent 11b9738 commit c406188fd7c136e5231f14ae242a1a2c986647be @joehewitt committed May 20, 2011
Showing with 6 additions and 6 deletions.
  1. +4 −4 examples/example1.html
  2. +1 −1 scrollability-min.js
  3. +1 −1 scrollability.js
View
@@ -18,8 +18,8 @@
#container {
position: absolute;
left: 0;
- top: 30px;
- bottom: 30px;
+ top: 24px;
+ bottom: 24px;
width: 320px;
background: #fff;
overflow: hidden;
@@ -46,11 +46,11 @@
.bar {
position: absolute;
background: #222;
- padding: 7px 0;
left: 0;
width: 100%;
color: #fff;
- font-size: 12px;
+ padding: 5px 0;
+ font-size: 10px;
font-weight: bold;
text-align: center;
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -8,7 +8,7 @@ var kLockThreshold = 10;
var kTouchMultiplier = 1;
// Maximum velocity for motion after user releases finger
-var kMaxVelocity = 550;
+var kMaxVelocity = 720 / devicePixelRatio;
// Rate of deceleration after user releases finger
var kDecelRate = 350;

0 comments on commit c406188

Please sign in to comment.