From b77c3b46afe34efdff00e713e20c5cee03026eab Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Thu, 7 Oct 2021 12:07:14 +0200 Subject: [PATCH] Don't make text selectable on mobile since it messes up scrolling --- src/qml/EntryPage.qml | 2 +- src/qml/FeedDetailsPage.qml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/qml/EntryPage.qml b/src/qml/EntryPage.qml index 4b56abce..b2fadc14 100644 --- a/src/qml/EntryPage.qml +++ b/src/qml/EntryPage.qml @@ -77,7 +77,7 @@ Kirigami.ScrollablePage { id: textLabel Layout.margins: Kirigami.Units.gridUnit readOnly: true - selectByMouse: true + selectByMouse: !Kirigami.Settings.isMobile text: page.entry.content baseUrl: page.entry.baseUrl textFormat: Text.RichText diff --git a/src/qml/FeedDetailsPage.qml b/src/qml/FeedDetailsPage.qml index 7c825a34..63bf5833 100644 --- a/src/qml/FeedDetailsPage.qml +++ b/src/qml/FeedDetailsPage.qml @@ -46,7 +46,7 @@ Kirigami.ScrollablePage { ColumnLayout { TextEdit { readOnly: true - selectByMouse: true + selectByMouse: !Kirigami.Settings.isMobile textFormat:TextEdit.RichText text: feed.description font.pointSize: Math.round(Kirigami.Theme.defaultFont.pointSize * 1.2) @@ -55,7 +55,7 @@ Kirigami.ScrollablePage { } TextEdit { readOnly: true - selectByMouse: true + selectByMouse: !Kirigami.Settings.isMobile textFormat:TextEdit.RichText text: i18nc("by ", "by %1", author) visible: author !== "" @@ -72,7 +72,7 @@ Kirigami.ScrollablePage { } TextEdit { readOnly: true - selectByMouse: true + selectByMouse: !Kirigami.Settings.isMobile textFormat:TextEdit.RichText text: i18n("Weblink") + ": %1".arg(feed.link) onLinkActivated: Qt.openUrlExternally(link) @@ -81,7 +81,7 @@ Kirigami.ScrollablePage { } TextEdit { readOnly: true - selectByMouse: true + selectByMouse: !Kirigami.Settings.isMobile textFormat:TextEdit.RichText text: isSubscribed ? i18n("Subscribed since: %1", feed.subscribed.toLocaleString(Qt.locale(), Locale.ShortFormat)) : "" visible: isSubscribed @@ -90,7 +90,7 @@ Kirigami.ScrollablePage { } TextEdit { readOnly: true - selectByMouse: true + selectByMouse: !Kirigami.Settings.isMobile textFormat:TextEdit.RichText text: isSubscribed ? i18n("Last Updated: %1", feed.lastUpdated.toLocaleString(Qt.locale(), Locale.ShortFormat)) : "" visible: isSubscribed @@ -99,7 +99,7 @@ Kirigami.ScrollablePage { } TextEdit { readOnly: true - selectByMouse: true + selectByMouse: !Kirigami.Settings.isMobile textFormat:TextEdit.RichText text: i18np("1 Episode", "%1 Episodes", feed.entryCount) + ", " + i18np("1 Unplayed", "%1 Unplayed", feed.unreadEntryCount) visible: isSubscribed