Fix wrong return value for mouseup/mousedown

Fix drag and drop clash problem in #431