Take original background position into account.
lhunath opened this issue · comments
When the background image's position isn't top-left, this plugin forces it to top-left + offset as soon as you start scrolling; which is never desired when a non-default position is set.
This plugin should figure out the position of the background before it sets it, and offset its own adjustments to the original position.
Looks like the problem is when the original position is not a pixel value but something like center
or 50%
:
parseInt(currentPosArray[1].replace(/[^0-9\-]/g, ""));
You might want to use jquery's relative css instead: http://jsfiddle.net/g7mSk/