Skip to content

Commit

Permalink
Merge pull request #130 from Polymer/gesture
Browse files Browse the repository at this point in the history
use Polymer.Gestures.add for polymer gesture events
  • Loading branch information
frankiefu authored Jun 6, 2017
2 parents 6c49326 + 2c7586a commit 80415e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shop-ripple-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
super.ready();
this.addEventListener('focus', (e)=>this._onFocus(e), true);
this.addEventListener('blur', (e)=>this._onBlur(e), true);
this.addEventListener('down', (e)=>this._rippleDown(e));
this.addEventListener('up', (e)=>this._rippleUp(e));
Polymer.Gestures.addListener(this, 'down', this._rippleDown);
Polymer.Gestures.addListener(this, 'up', this._rippleUp);
}

_onFocus(event) {
Expand Down

0 comments on commit 80415e5

Please sign in to comment.