Adjustment cursor move

Let the cursor move smoothly
down flag = false when mouse up