fixed a bug in which the clicking was not detected
used the interpolation for consistent framerate