Skip to content

Commit

Permalink
MappingBrowserTable: Debounce hover effect
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed May 29, 2019
1 parent 4e0af05 commit 54ea090
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/MappingBrowserTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,9 @@ export default {
}
},
},
created() {
this.hover = _.debounce(this._hover, 20)
},
mounted() {
this.$util.setupTableScrollSync()
},
Expand Down Expand Up @@ -639,7 +642,7 @@ export default {
let color = `rgb(${r}, ${g}, ${b})`
return color
},
hover(event) {
_hover(event) {
this.hoveredMapping = event && event.mapping
this.hoveredId = event && event.uniqueId
},
Expand Down

0 comments on commit 54ea090

Please sign in to comment.