Add onCntextMenu to cancel for the element capture