mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix scrolling in image dialog
This commit is contained in:
parent
885168c08f
commit
16960e2900
1 changed files with 6 additions and 2 deletions
|
@ -25,12 +25,12 @@ Window {
|
||||||
Component.onCompleted: Nheko.setWindowRole(imageOverlay, "imageoverlay")
|
Component.onCompleted: Nheko.setWindowRole(imageOverlay, "imageoverlay")
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequence: StandardKey.Cancel
|
sequences: [StandardKey.Cancel]
|
||||||
onActivated: imageOverlay.close()
|
onActivated: imageOverlay.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequence: StandardKey.Copy
|
sequences: [StandardKey.Copy]
|
||||||
onActivated: {
|
onActivated: {
|
||||||
if (room) {
|
if (room) {
|
||||||
room.copyMedia(eventId);
|
room.copyMedia(eventId);
|
||||||
|
@ -98,6 +98,10 @@ Window {
|
||||||
|
|
||||||
WheelHandler {
|
WheelHandler {
|
||||||
property: "scale"
|
property: "scale"
|
||||||
|
// workaround for QTBUG-87646 / QTBUG-112394 / QTBUG-112432:
|
||||||
|
// Magic Mouse pretends to be a trackpad but doesn't work with PinchHandler
|
||||||
|
// and we don't yet distinguish mice and trackpads on Wayland either
|
||||||
|
acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad
|
||||||
target: imgContainer
|
target: imgContainer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue