fix: fix sticker click modal to only open on sticker click
This commit is contained in:
parent
996b36714d
commit
1bc3fa1c97
|
@ -24,8 +24,8 @@ Item {
|
|||
MouseArea {
|
||||
enabled: !placeholderMessage
|
||||
anchors.fill: messageContainer
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
onClicked: messageMouseArea.clicked(mouse)
|
||||
acceptedButtons: Qt.RightButton
|
||||
onClicked: messageMouseArea.clicked(mouse)
|
||||
}
|
||||
|
||||
ChatButtons {
|
||||
|
|
|
@ -15,7 +15,11 @@ MouseArea {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (mouse.button & Qt.LeftButton && isSticker && stickersLoaded) {
|
||||
if (mouse.button === Qt.LeftButton && isSticker && stickersLoaded) {
|
||||
if (isHovered) {
|
||||
isHovered = false
|
||||
}
|
||||
|
||||
openPopup(statusStickerPackClickPopup, {packId: stickerPackId} )
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue