thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Improve distinction between slow scroll and long-press selection

Open seb9393 opened this issue 9 months ago • 3 comments

Checklist

  • [x] I have used the search function to see if someone else has already submitted the same bug report.
  • [x] I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

16.1

Where did you get the app from?

Google Play

Android version

I'm using stock android 12

Device model

Samsung Galaxy M31

Steps to reproduce

1 Open a long message 2 Scroll the text slowly, as if you want to scroll the text while reading

Expected behavior

When reading long messages, users often keep their finger on the screen to scroll slowly. The system should recognize this movement to prevent accidental text selection.

Actual behavior

It frequently happens that while slowly scrolling through text—usually when reading long emails—text is accidentally selected. The delay between the initial touch and text selection should be increased; alternatively, users should be able to customize this delay in the 'Interaction' settings menu

Logs

No response

seb9393 avatar Feb 15 '26 10:02 seb9393

We use a WebView to render the message content, so we inherit it's behavior. It's low priority for us, but I'm not closing this to leave it open for community contributions.

wmontwe avatar Feb 18 '26 13:02 wmontwe

Hi @wmontwe I looked into this and it seems Android doesn't expose API to increase the long-press timeout directly. I tried to override onTouchEvent in MessageWebView using MotionEvent and call cancelLongPress() whenever scroll movement exceeds but I don't see much difference in text selection on slow scrolls. I'm clueless how to proceed from here. May I know what I'm missing?

saisafe avatar May 11 '26 19:05 saisafe

My issue with scrolling and accidental long press (and it took me awhile to realise why this happens so often to me in Thunderbird compared to other apps) is that I'll flick to scroll, and then press the screen to stop the automatic scrolling (or to flick again and keep scrolling). In most Android apps, this interaction seems to be ignored (no matter how long the press) when the screen is scrolling. I guess it's just assumed to be a scroll interaction which makes sense to me. But in Thunderbird, if you hold for even a fraction of a second, you'll get a text selection or a context menu (on a link or whatever) which is really annoying. Pretty much every time I flick scroll through a long message I end up selecting text or opening a context menu at multiple points. It's about my only major issue with Thunderbird but it has bothered me for years. I have no other apps which behave like this (and surely some of them use web views).

TL;DR: Flick to auto scroll and then tap or press the screen, the latter interaction is ignored in most apps, but not Thunderbird.

kj avatar Sep 11 '26 05:09 kj