Skip to content

Commit

Permalink
* Fix scrolling speed on retina display
Browse files Browse the repository at this point in the history
  • Loading branch information
joehewitt committed May 20, 2011
1 parent 11b9738 commit c406188
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/example1.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#container {
position: absolute;
left: 0;
top: 30px;
bottom: 30px;
top: 24px;
bottom: 24px;
width: 320px;
background: #fff;
overflow: hidden;
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion scrollability-min.js

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

2 changes: 1 addition & 1 deletion scrollability.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c406188

Please sign in to comment.