Skip to content

Commit

Permalink
* Ignore targets without "scrollable" class
Browse files Browse the repository at this point in the history
  • Loading branch information
joehewitt committed Sep 14, 2011
1 parent d76cd2b commit a88dce2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrollability.js
Expand Up @@ -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]) {
Expand Down

0 comments on commit a88dce2

Please sign in to comment.