fix while dragging and mouse wheel bug, but it doesn't work on IE now.