Skip to content

Commit

Permalink
Merge pull request #6 from Ayc0/Ayc0/event-phase
Browse files Browse the repository at this point in the history
Change values for the eventPhase on defaultEvent
  • Loading branch information
Ayc0 authored Jan 18, 2022
2 parents 990a939 + bece4a0 commit 5d36ed1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,17 @@ const defaultEvent = {
eventPhase: 0,
isTrusted: false,
initEvent: () => {},
AT_TARGET: null,
BUBBLING_PHASE: null,
CAPTURING_PHASE: null,
NONE: null,
composedPath: () => [],
preventDefault: () => {},
stopImmediatePropagation: () => {},
stopPropagation: () => {},
returnValue: true,
srcElement: null,
// See https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase
NONE: 0,
CAPTURING_PHASE: 1,
AT_TARGET: 2,
BUBBLING_PHASE: 3,
};

export const setMedia = (media: Partial<MediaState>) => {
Expand Down

0 comments on commit 5d36ed1

Please sign in to comment.