Fix for scroll offset jumps after first touch scroll

Fix for issue #1252.