make header scrollable Y->X
This commit is contained in:
parent
e2bcbd51bb
commit
0bbdea0e90
|
@ -135,6 +135,9 @@ const EmojiPicker = {
|
||||||
Popover
|
Popover
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
groupScroll (e) {
|
||||||
|
e.currentTarget.scrollLeft += e.deltaY + e.deltaX
|
||||||
|
},
|
||||||
updateEmojiSize () {
|
updateEmojiSize () {
|
||||||
const css = window.getComputedStyle(this.$refs.popover.$el)
|
const css = window.getComputedStyle(this.$refs.popover.$el)
|
||||||
const emojiSize = css.getPropertyValue('--emojiSize')
|
const emojiSize = css.getPropertyValue('--emojiSize')
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
@close="onPopoverClosed"
|
@close="onPopoverClosed"
|
||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="heading">
|
<div
|
||||||
|
class="heading"
|
||||||
|
>
|
||||||
<!--
|
<!--
|
||||||
Body scroll lock needs to be on every scrollable element on safari iOS.
|
Body scroll lock needs to be on every scrollable element on safari iOS.
|
||||||
Here we tell it to enable scrolling for this element.
|
Here we tell it to enable scrolling for this element.
|
||||||
|
@ -18,6 +20,7 @@
|
||||||
ref="header"
|
ref="header"
|
||||||
v-body-scroll-lock="isInModal"
|
v-body-scroll-lock="isInModal"
|
||||||
class="emoji-tabs"
|
class="emoji-tabs"
|
||||||
|
@wheel.prevent="groupScroll"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-for="group in filteredEmojiGroups"
|
v-for="group in filteredEmojiGroups"
|
||||||
|
|
Loading…
Reference in a new issue