Line 55: | Line 55: | ||
} | } | ||
// change 12 to alter damping higher is slower | // change 12 to alter damping higher is slower | ||
− | xp += (mouseX - xp) / | + | xp += (mouseX - xp) / 12; |
− | + | ||
+ | rider.css({left:xp}); | ||
}, 30); | }, 30); | ||
Revision as of 00:24, 31 October 2017