Skip to content

Commit

Permalink
fix(MdButton): fix events when ripple is on (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
VdustR authored and marcosmoura committed Feb 28, 2018
1 parent c820b72 commit e7f8f34
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/components/MdButton/MdButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,24 @@
on: {
...this.$listeners,
touchstart: event => {
if (!this.rippleWorks) {
return false
if (this.rippleWorks) {
this.rippleActive = event
}
this.rippleActive = event
this.$listeners.touchstart && this.$listeners.touchstart(event)
},
touchmove: event => {
if (!this.rippleWorks) {
return false
if (this.rippleWorks) {
this.rippleActive = event
}
this.rippleActive = event
this.$listeners.touchmove && this.$listeners.touchmove(event)
},
mousedown: event => {
if (!this.rippleWorks) {
return false
if (this.rippleWorks) {
this.rippleActive = event
}
this.rippleActive = event
this.$listeners.mousedown && this.$listeners.mousedown(event)
}
}
Expand Down

0 comments on commit e7f8f34

Please sign in to comment.