Permalink
Browse files

final tonight.

  • Loading branch information...
1 parent 642fb7b commit 3177d06b696645362d48e0f1d60cefafa6632afc @fat committed Jun 22, 2012
Showing with 10 additions and 14 deletions.
  1. +10 −14 javascript/coffin.js
View
@@ -61,26 +61,22 @@
$body.bind('touchend.coffin', function (e) {
- setTimeout(function () {
- if (!window.scrollX) return
+ if (!window.scrollX) return
- var willScroll = (210 - window.scrollX) >= 0
+ var willScroll = (210 - window.scrollX) >= 0
- isOpen = true
+ isOpen = true
- if (willScroll) $stage.one('webkitTransitionEnd', transitionComplete)
+ if (willScroll) $stage.one('webkitTransitionEnd', transitionComplete)
- $stage.css({
- '-webkit-transform': translate3d(),
- '-webkit-transition': '-webkit-transform .1s linear'
- })
+ $stage.css({
+ '-webkit-transform': translate3d(),
+ '-webkit-transition': '-webkit-transform .1s linear'
+ })
- if (!willScroll) transitionComplete()
-
- $body.unbind('touchend.coffin')
-
- }, 50)
+ if (!willScroll) transitionComplete()
+ $body.unbind('touchend.coffin')
})

0 comments on commit 3177d06

Please sign in to comment.