From 8f1167e4a4309d8dbfc3db41a75db7f5323f7ade Mon Sep 17 00:00:00 2001 From: PhilW Date: Thu, 10 Dec 2020 17:27:46 +0000 Subject: [PATCH] fix swipe-select action (#15) --- CHANGELOG | 4 ++++ swipe.js | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 8fd1c9d..9f9942b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,10 @@ Roundcube Webmail Swipe ======================= +Version 0.3.2 (2020-12-20, rc-1.4.4) +================================================= + * Fix swipe-select action (#15) + Version 0.3.1 (2020-11-20, rc-1.4.4) ================================================= * Various code improvements diff --git a/swipe.js b/swipe.js index 88d043c..31c15bd 100644 --- a/swipe.js +++ b/swipe.js @@ -64,7 +64,9 @@ rcube_webmail.prototype.swipe = { rcmail.command(command, '', props.obj, props.originalEvent, true); } else if (type == 'select') { - rcmail.env.swipe_list.highlight_row(props.uid, true); + // Async action, do not override selection + rcmail.env[rcmail.env.swipe_selection_id] = null; + rcmail.env.swipe_list.select_row(props.uid, CONTROL_KEY, true); } else { var prev_command = rcmail.commands[command];