How to use the @rmwc/base.applyPassive function in @rmwc/base

To help you get started, we’ve selected a few @rmwc/base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jamesmfriedman / rmwc / src / ripple / foundation.tsx View on Github external
registerDocumentInteractionHandler: (
          evtType: K,
          handler: SpecificEventListener
        ): void =>
          document.documentElement.addEventListener(
            evtType,
            handler,
            applyPassive()
          ),
        deregisterDocumentInteractionHandler: (
github jamesmfriedman / rmwc / src / ripple / index.tsx View on Github external
registerDocumentInteractionHandler: (
        evtType: K,
        handler: SpecificEventListener
      ): void =>
        document.documentElement.addEventListener(
          evtType,
          handler,
          applyPassive()
        ),
      deregisterDocumentInteractionHandler: (