How to use the @polymer/polymer/lib/utils/gestures.removeListener function in @polymer/polymer

To help you get started, we’ve selected a few @polymer/polymer 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 pshihn / emoji-slider / bin / emoji-slider.js View on Github external
detachTrackHandlers() {
        const bar = this.trackBar;
        removeListener(bar, 'up', this.upHandler);
        removeListener(bar, 'down', this.downHandler);
        removeListener(bar, 'track', this.trackHandler);
        this.removeEventListener('keydown', this.keyHandler);
    }
    onUp() {
github pshihn / emoji-slider / src / emoji-slider.ts View on Github external
private detachTrackHandlers() {
    const bar = this.trackBar!;
    removeListener(bar, 'up', this.upHandler);
    removeListener(bar, 'down', this.downHandler);
    removeListener(bar, 'track', this.trackHandler);
    this.removeEventListener('keydown', this.keyHandler);
  }
github alibaba / rax / packages / atag / src / components / picker / index.html View on Github external
disconnectedCallback() {
    super.disconnectedCallback();

    window.removeEventListener('_formReset', this._handleReset, true);
    Gestures.removeListener(this.$.body, 'track', this._handleTrack);
    this.$.slot.removeEventListener('click', this.show);

    this.$.mask.removeEventListener('click', this.hide);
    this.$.cancel.removeEventListener('click', this.hide);
    this.$.confirm.removeEventListener('click', this.confirm);
  }
github pshihn / emoji-slider / bin / emoji-slider.js View on Github external
detachTrackHandlers() {
        const bar = this.trackBar;
        removeListener(bar, 'up', this.upHandler);
        removeListener(bar, 'down', this.downHandler);
        removeListener(bar, 'track', this.trackHandler);
        this.removeEventListener('keydown', this.keyHandler);
    }
    onUp() {
github pshihn / emoji-slider / src / emoji-slider.ts View on Github external
private detachTrackHandlers() {
    const bar = this.trackBar!;
    removeListener(bar, 'up', this.upHandler);
    removeListener(bar, 'down', this.downHandler);
    removeListener(bar, 'track', this.trackHandler);
    this.removeEventListener('keydown', this.keyHandler);
  }
github alibaba / rax / packages / atag / src / components / slider / index.js View on Github external
disconnectedCallback() {
    super.disconnectedCallback();

    Gestures.removeListener(this.$.handle, 'track', this._handleTrack);
    window.removeEventListener('_formReset', this.handleReset, true);
  }
github pshihn / emoji-slider / src / emoji-slider.ts View on Github external
private detachTrackHandlers() {
    const bar = this.trackBar!;
    removeListener(bar, 'up', this.upHandler);
    removeListener(bar, 'down', this.downHandler);
    removeListener(bar, 'track', this.trackHandler);
    this.removeEventListener('keydown', this.keyHandler);
  }
github alibaba / rax / packages / atag / src / components / swiper / index.js View on Github external
if (!this.circular && this.current === 0) {
        this._revert();
      } else {
        this._prev();
      }
    } else {
      this._revert();
    }

    if (this.autoplay) {
      setTimeout(() => {
        this._activeAutoplay();
      }, this.duration);
    }

    Gestures.removeListener(document.documentElement, 'track', this._handleGlobalTrack);
  };

@polymer/polymer

The Polymer library makes it easy to create your own web components. Give your element some markup and properties, and then use it on a site. Polymer provides features like dynamic templates and data binding to reduce the amount of boilerplate you need to

BSD-3-Clause
Latest version published 3 months ago

Package Health Score

90 / 100
Full package analysis