Skip to content

Commit

Permalink
Merge pull request #687 from 101arrowz/master
Browse files Browse the repository at this point in the history
Remove applyPassive
  • Loading branch information
jamesmfriedman authored Aug 20, 2020
2 parents bebaef7 + bfb3636 commit 0985af7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 64 deletions.
59 changes: 0 additions & 59 deletions src/base/utils/apply-passive.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/base/utils/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export * from './random-id';
export * from './strings';
export * from './wrap-child';
export * from './emitter';
export * from './apply-passive';
export * from './get-display-name';
export * from './empty-client-rect';
export * from './data-table-context';
Expand Down
7 changes: 3 additions & 4 deletions src/ripple/foundation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useCallback, useRef, useEffect } from 'react';
import { RippleProps } from './';
import { useFoundation, emptyClientRect } from '@rmwc/base';
import { matches, applyPassive } from '@rmwc/base';
import { matches } from '@rmwc/base';
import { EventType, SpecificEventListener } from '@material/base/types';

import { MDCRippleFoundation, util } from '@material/ripple';
Expand Down Expand Up @@ -57,16 +57,15 @@ export const useRippleFoundation = (
document.documentElement.addEventListener(
evtType,
handler,
applyPassive()
{ passive: true }
),
deregisterDocumentInteractionHandler: <K extends EventType>(
evtType: K,
handler: SpecificEventListener<K>
) =>
document.documentElement.removeEventListener(
evtType,
handler,
applyPassive() as any
handler
),
registerResizeHandler: (
handler: SpecificEventListener<'resize'>
Expand Down

0 comments on commit 0985af7

Please sign in to comment.