Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mobile_web: Persist text selection on longtap.
apoorvapendsed512e9a7c9b7
diff --git a/web/src/click_handlers.ts b/web/src/click_handlers.tsindex 104d5c2f872..53ee6721ad3 100644--- a/web/src/click_handlers.ts+++ b/web/src/click_handlers.ts@@ -220,22 +220,6 @@ export function initialize(): void {// selection function which will open the compose box and select the message.if (!util.is_mobile()) {$("#main_div").on("click", ".messagebox", select_message_function);- // on the other hand, on mobile it should be done with a long tap.- } else {- $("#main_div").on("longtap", ".messagebox", function (this: HTMLElement, e) {- const sel = window.getSelection();- // if one matches, remove the current selections.- // after a longtap that is valid, there should be no text selected.- if (sel) {- if (sel.removeAllRanges) {- sel.removeAllRanges();- } else if (sel.empty) {- sel.empty();- }- }-- select_message_function.call(this, e);- });}$("#main_div").on("click", ".star_container", function (e) {