Fixed #99 with requestAnimationFrame polyfill

This commit is contained in:
Max Lynch
2013-11-07 19:24:55 -06:00
parent d37ec6fca2
commit 32d0f48e21
9 changed files with 71 additions and 41 deletions

View File

@ -192,7 +192,7 @@
var _this = this,
finalOffsetX, content, ratio, slideWidth, totalWidth, offsetX;
window.requestAnimationFrame(function() {
window.rAF(function() {
// We didn't have a drag, so just init and leave
if(!_this._drag) {
@ -285,7 +285,7 @@
_handleDrag: function(e) {
var _this = this;
window.requestAnimationFrame(function() {
window.rAF(function() {
var content;
// We really aren't dragging