Simple solution to solve the ugly line drawing during scrolling (but I
needed to put 250ms before updating the line so it seems to be very
slow...)