Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #46 from magebarf/master

Store the actual starting positions.
  • Loading branch information...
commit bf9dff5c1894228fef53b4bddeb279fbc413f4e6 2 parents bfa3c42 + 075936c
@cameronmcefee authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/plax.js
View
4 js/plax.js
@@ -88,8 +88,8 @@
'right' :'',
'bottom':''
})
- layer.originX = layer.startX = this.offsetLeft
- layer.originY = layer.startY = this.offsetTop
+ layer.originX = layer.startX = position.left
+ layer.originY = layer.startY = position.top
}
layer.startX -= layer.inversionFactor * Math.floor(layer.xRange/2)
Please sign in to comment.
Something went wrong with that request. Please try again.