How to use the @polymer/polymer/lib/utils/settings.setPassiveTouchGestures 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 lablup / backend.ai-console / src / archive / backend-ai-data-view.js View on Github external
constructor() {
    super();
    // Resolve warning about scroll performance
    // See https://developers.google.com/web/updates/2016/06/passive-event-listeners
    setPassiveTouchGestures(true);
  }
github home-assistant / home-assistant-polymer / src / entrypoints / app.ts View on Github external
// Load polyfill first so HTML imports start resolving
/* eslint-disable import/first */
import "../resources/html-import/polyfill";
import "@polymer/paper-styles/typography";
import { setPassiveTouchGestures } from "@polymer/polymer/lib/utils/settings";

import "../util/legacy-support";
import "../resources/roboto";

// For MDI icons. Needs to be part of main bundle or else it won't hook
// properly into iron-meta, which is used to transfer iconsets to iron-icon.
import "../components/ha-iconset-svg";

import "../layouts/home-assistant";

setPassiveTouchGestures(true);
/* LastPass createElement workaround. See #428 */
document.createElement = Document.prototype.createElement;

(window as any).frontendVersion = __VERSION__;
github lablup / backend.ai-console / src / archive / backend-ai-template.js View on Github external
constructor() {
    super();
    // Resolve warning about scroll performance 
    // See https://developers.google.com/web/updates/2016/06/passive-event-listeners
    setPassiveTouchGestures(true);
  }
github lablup / backend.ai-console / src / plastics / plastic-material / plastic-material.js View on Github external
constructor() {
    super();
    setPassiveTouchGestures(true);
    this.elevation = 1;
    this.animated = false;
  }
github lablup / backend.ai-console / src / components / backend-ai-settings-view.js View on Github external
constructor() {
    super();
    setPassiveTouchGestures(true);
    this.images = {};
    this.active = false;
  }
github lablup / backend.ai-console / src / components / backend-ai-console.js View on Github external
constructor() {
    super();
    setPassiveTouchGestures(true);
    this.menuTitle = 'LOGIN REQUIRED';
    this.user_id = 'DISCONNECTED';
    this.domain = 'CLICK TO CONNECT';
    this.is_connected = false;
    this.is_admin = false;
    this._page = '';
    this.groups = [];
    this.connection_mode = 'API';
    this.plugins = {};
  }
github lablup / backend.ai-console / src / components / backend-ai-pipeline-view.ts View on Github external
constructor() {
    super();
    setPassiveTouchGestures(true);
    this.active = false;
    this.supports = {};
    this.aliases = {
      'TensorFlow': 'python-tensorflow',
      'Lablup ResearchEnv.': 'python-ff',
      'Python': 'python',
      'PyTorch': 'python-pytorch',
      'Chainer': 'chainer',
      'R': 'r',
      'Julia': 'julia',
      'Lua': 'lua',
    };
    this.versions = [];
    this.languages = [];
    this.defaultLanguage = '';

@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