Check if the current scroll value is NaN and convert that to 0.0 fixes #44 Change-Id: I1c33332ccdfe9d7f8362e59ddc38b57c673664e2