`event.isTrigger` is not part of the public jQuery API, so should not be relied upon (https://github.com/jquery/api.jquery.com/issues/319)

Perhaps switch to something like `if (e.originalEvent === undefined)`?