Use the offset of the first argument provided (x) to determine scrollLeft.
Merge pull request #1 from rquantz/master

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