Fixed issue with slider panning.

This pull request resolves #5