How to use the ember-keyboard.mouseDown function in ember-keyboard

To help you get started, we’ve selected a few ember-keyboard 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 briarsweetbriar / ember-keyboard / tests / dummy / app / components / mouse-down-counter.js View on Github external
didInsertElement() {
    this._super(...arguments);

    this.on(mouseDown('left'), makeEventHandler(1));
    this.on(mouseDown('right'), makeEventHandler(10));
    this.on(mouseDown('middle'), makeEventHandler(-10));
  }
github briarsweetbriar / ember-keyboard / tests / dummy / app / components / mouse-down-counter.js View on Github external
didInsertElement() {
    this._super(...arguments);

    this.on(mouseDown('left'), makeEventHandler(1));
    this.on(mouseDown('right'), makeEventHandler(10));
    this.on(mouseDown('middle'), makeEventHandler(-10));
  }
github briarsweetbriar / ember-keyboard / tests / dummy / app / components / mouse-down-counter.js View on Github external
didInsertElement() {
    this._super(...arguments);

    this.on(mouseDown('left'), makeEventHandler(1));
    this.on(mouseDown('right'), makeEventHandler(10));
    this.on(mouseDown('middle'), makeEventHandler(-10));
  }