interpolate between current and previous mouse positions