Dragging the mouse from child frame to parent frame causes both mousedown and mouseup events being dispatched to child frame, regardless of whether the mousedown event is canceled or not.