The scrollLeft value should be determined by the offset.left of x

Thanks for this plugin!

I'm assuming it's a typo, but you're using the second element to determine both the scollLeft and scrollTop values. This causes problems when the second argument is a number, or when the two elements provided are different.

If this is intentional, forgive me, and please explain!