Allow using mouse wheel to navigate through the emoji tabs
This commit is contained in:
parent
169282ea42
commit
e06348ee33
2 changed files with 9 additions and 1 deletions
|
@ -62,6 +62,10 @@ const EmojiPicker = {
|
|||
this.scrolledGroup(target)
|
||||
this.triggerLoadMore(target)
|
||||
},
|
||||
onWheel (e) {
|
||||
e.preventDefault()
|
||||
this.$refs['emoji-tabs'].scrollBy(e.deltaY, 0)
|
||||
},
|
||||
highlight (key) {
|
||||
this.setShowStickers(false)
|
||||
this.activeGroup = key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue