commit: bf5bd4235d9de636566ba804580136cfd58980a0
parent 09402e2537e0c43c52bd8345301885647e841ed1
Author: tusooa <tusooa@kazv.moe>
Date: Thu, 29 Jun 2023 11:40:33 -0400
Comment the v-body-scroll-lock usage in code
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/components/emoji_picker/emoji_picker.vue b/src/components/emoji_picker/emoji_picker.vue
@@ -12,6 +12,11 @@
<span
ref="header"
class="emoji-tabs"
+ <!--
+ Body scroll lock needs to be on every scrollable element on safari iOS.
+ Here we tell it to enable scrolling for this element.
+ See https://github.com/willmcpo/body-scroll-lock#vanilla-js
+ -->
v-body-scroll-lock="isInModal"
>
<span
@@ -79,6 +84,7 @@
<DynamicScroller
ref="emoji-groups"
class="emoji-groups"
+ <!-- Enables scrolling for this element on safari iOS. See comments for header. -->
v-body-scroll-lock="isInModal"
:class="groupsScrolledClass"
:min-item-size="minItemSize"