Move preventDefault() call so onmousedown runs correctly.