fix calling callback with err at element mouseUp, mouseDown