Skip to content
Snippets Groups Projects
Verified Commit 16960e29 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix scrolling in image dialog

parent 885168c0
No related branches found
No related tags found
No related merge requests found
Pipeline #4895 canceled
......@@ -25,12 +25,12 @@ Window {
Component.onCompleted: Nheko.setWindowRole(imageOverlay, "imageoverlay")
Shortcut {
sequence: StandardKey.Cancel
sequences: [StandardKey.Cancel]
onActivated: imageOverlay.close()
}
Shortcut {
sequence: StandardKey.Copy
sequences: [StandardKey.Copy]
onActivated: {
if (room) {
room.copyMedia(eventId);
......@@ -98,6 +98,10 @@ Window {
WheelHandler {
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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment