Permalink
Browse files

Return so we don't hit the first one

  • Loading branch information...
1 parent cf06a69 commit 499ee4a5f87dcc8b4e242c6082faec6256066c06 Cameron McEfee committed Dec 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 js/plax.js
View
@@ -139,6 +139,7 @@
topOffset = (plaxActivityTarget.offset() != null) ? plaxActivityTarget.offset().top : 0,
x = e.pageX-leftOffset,
y = e.pageY-topOffset
+
if (
x < 0 || x > plaxActivityTarget.width() ||
y < 0 || y > plaxActivityTarget.height()
@@ -147,6 +148,7 @@
if(moveable()){
if(e.gamma == undefined){
ignoreMoveable = true
+ return
}
values = valuesFromMotion(e)

0 comments on commit 499ee4a

Please sign in to comment.