From 42ae8fa9f25e0fcb416be0720b1fcdf99a15c602 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Wed, 26 Jan 2022 19:14:18 -0500 Subject: [PATCH] Use ScrollHelper on EmojiPicker --- resources/qml/emoji/EmojiPicker.qml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/resources/qml/emoji/EmojiPicker.qml b/resources/qml/emoji/EmojiPicker.qml index 2373c88f..dc813566 100644 --- a/resources/qml/emoji/EmojiPicker.qml +++ b/resources/qml/emoji/EmojiPicker.qml @@ -135,6 +135,12 @@ Menu { currentIndex: -1 // prevent sorting from stealing focus cacheBuffer: 500 + ScrollHelper { + flickable: parent + anchors.fill: parent + enabled: !Settings.mobileMode + } + // Individual emoji delegate: AbstractButton { width: 48 @@ -150,16 +156,16 @@ Menu { } // give the emoji a little oomf - DropShadow { - width: parent.width - height: parent.height - horizontalOffset: 3 - verticalOffset: 3 - radius: 8 - samples: 17 - color: "#80000000" - source: parent.contentItem - } + // DropShadow { + // width: parent.width + // height: parent.height + // horizontalOffset: 3 + // verticalOffset: 3 + // radius: 8 + // samples: 17 + // color: "#80000000" + // source: parent.contentItem + // } contentItem: Text { horizontalAlignment: Text.AlignHCenter