Add onCntextMenu to cancel the element capture