Permalink
Browse files

* Ignore targets without "scrollable" class

  • Loading branch information...
1 parent d76cd2b commit a88dce24ea21aa2331ad604d126b153e13e53ff4 @joehewitt committed Sep 14, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 scrollability.js
View
3 scrollability.js
@@ -503,6 +503,9 @@ function findAnimators(element, animators, touchX, touchY, startTime) {
function createAnimatorForElement(element, touchX, touchY, startTime) {
var classes = element.className.split(' ');
+ if (classes.indexOf("scrollable") == -1)
+ return;
+
for (var i = 0; i < classes.length; ++i) {
var name = classes[i];
if (directions[name]) {

0 comments on commit a88dce2

Please sign in to comment.