fix: fix sticker click modal to only open on sticker click

This commit is contained in:
Jonathan Rainville 2021-03-30 10:13:20 -04:00 committed by Iuri Matias
parent 996b36714d
commit 1bc3fa1c97
2 changed files with 7 additions and 3 deletions

View File

@ -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 {

View File

@ -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;
}