Reset timer when user drag the scroll view

And fixed some warnings when compiling 64-bit binary.