Fix scrolling in image dialog

pull/1500/head
Nicolas Werner 1 year ago
parent 885168c08f
commit 16960e2900
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 8
      resources/qml/dialogs/ImageOverlay.qml

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

Loading…
Cancel
Save