[Libreoffice-commits] online.git: loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jul 29 08:20:42 UTC 2020
loleaflet/src/core/Socket.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit caac657967a401e1e0c4d035ee3bc94e453eed2e
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Jul 21 13:00:08 2020 +0530
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Jul 29 10:20:11 2020 +0200
leaflet: changed idle document message for touch screens
touch screen will ask for tap instead of click to resume
Change-Id: Ie5cb3db33de606beba9e9f1841f9171647aa02ac
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99122
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 9f382a020..7fcd7f4ac 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -397,7 +397,11 @@ L.Socket = L.Class.extend({
postMsgData['Reason'] = 'OwnerTermination';
}
else if (textMsg === 'idle' || textMsg === 'oom') {
- msg = _('Idle document - please click to reload and resume editing');
+ if (window.mode.isDesktop()) {
+ msg = _('Idle document - please click to reload and resume editing');
+ } else {
+ msg = _('Idle document - please tap to reload and resume editing');
+ }
this._map._documentIdle = true;
postMsgData['Reason'] = 'DocumentIdle';
if (textMsg === 'oom')
More information about the Libreoffice-commits
mailing list