From 5a3abdde85c86f82dd86ae28fe0ee232e310349f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 10 Aug 2023 15:22:36 +0000 Subject: [PATCH] qml: don't apply ElListView deadzones on Linux desktop otherwise I can't click on list items if the window is moved too far to the right :O follow-up 583afefe33d7999fd3dfbcc5821be840e8dc1b4b Note: on modern Android, apps don't always run full-screen. You can pop them out into small windows and move them. Haven't tested how the deadzones work then though. --- electrum/gui/qml/components/controls/ElListView.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/controls/ElListView.qml b/electrum/gui/qml/components/controls/ElListView.qml index 9ae1c121e..60111b50e 100644 --- a/electrum/gui/qml/components/controls/ElListView.qml +++ b/electrum/gui/qml/components/controls/ElListView.qml @@ -26,13 +26,15 @@ ListView { // android back gesture is used function layoutExclusionZones() { var reserve = constants.fingerWidth / 2 - var p = root.mapToGlobal(0, 0) + var p = root.mapToGlobal(0, 0) // note: coords on whole *screen*, not just window width_left_exclusion_zone = Math.max(0, reserve - p.x) p = root.mapToGlobal(width, 0) width_right_exclusion_zone = Math.max(0, reserve - (app.width - p.x)) } Component.onCompleted: { - layoutExclusionZones() + if (AppController.isAndroid()) { + layoutExclusionZones() + } } }