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() + } } }