Fix mouse drag setting the value to NaN if the initial value is negative.