How to use the @material/dom/events.js.applyPassive function in @material/dom

To help you get started, we’ve selected a few @material/dom 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 material-components / material-components-web-components / packages / slider / src / mwc-slider-base.ts View on Github external
(type: K, handler: SpecificEventListener) => {
            const init = type === 'touchstart' ? applyPassive() : undefined;
            this.thumbContainer.addEventListener(type, handler, init);
          },
      deregisterThumbContainerInteractionHandler:
github material-components / material-components-web-components / packages / slider / src / mwc-slider-base.ts View on Github external
(type: K, handler: SpecificEventListener) => {
            const init = type === 'touchstart' ? applyPassive() : undefined;
            this.mdcRoot.addEventListener(type, handler, init);
          },
      deregisterInteractionHandler:
github material-components / material-components-web-components / packages / slider / src / mwc-slider-base.ts View on Github external
registerResizeHandler: (handler: SpecificEventListener<'resize'>) =>
          window.addEventListener('resize', handler, applyPassive()),
      deregisterResizeHandler: (handler: SpecificEventListener<'resize'>) =>

@material/dom

DOM manipulation utilities for Material Components for the web

MIT
Latest version published 2 years ago

Package Health Score

85 / 100
Full package analysis

Similar packages