Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Ignore targets without "scrollable" class

  • Loading branch information...
commit a88dce24ea21aa2331ad604d126b153e13e53ff4 1 parent d76cd2b
@joehewitt authored
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]) {
Please sign in to comment.
Something went wrong with that request. Please try again.