Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thunderbird: Not possible to write a new message with ScrollAnywhere activated and LeftButton active #34

Open
sphh opened this issue Mar 26, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@sphh
Copy link

sphh commented Mar 26, 2021

Describe the bug
I use ScrollAnywhere in Thunderbird on a tablet with touchscreen and pen input. It works well in the message pane, but not in the message list or folder panes. But what is more troubling, is that it becomes nearly impossible to write an email: You cannot place the cursor in the message input box.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Set ScrollAnywhere to use the Left button and tick all checkboxes under it.
  2. Activate ScrollAnywhere.
  3. Open a new Compose message window.
  4. Try to position the cursor in this composer window:
    1. Clicking into the message input box does not show the cursor.
    2. Pressing TAB repeatedly does not position the cursor in the message input box.
    3. Only right-clicking into the message input box shows the cursor.
  5. This has to be repeated everytime when you re-activate the composer window (e.g. you switch to another program and switch back to the composer window).

I tried with Single click and Double click and experience the same behaviour for both settings.

Expected behavior
The cursor should show in the message compose input box.

Device info:

  • operating system: Linux Mint 20.1
  • Browser and version: Thunderbird 78.7.1
  • addon version: 8.7
@sphh sphh added the bug Something isn't working label Mar 26, 2021
@fastaddons
Copy link
Collaborator

fastaddons commented Mar 26, 2021

Yeah, that left mouse scrolling is hard to do right.
Regarding the scrolling in the message list or folder panes - this is not possible, there is simply no API I could use to scroll those. If they add it in the future, I will for sure implement it because I miss it too.

Now the scrolling in the message is tricky, there seems to be multiple things that needs fixing:

  1. When the message is opened, the focus is correctly on the first line but scrolling will steal the focus somehow somewhere... However even if I fix this, it would be still hard (or impossible) to position cursor back on top line once you click to the body below - since there is no text on the first line!

  2. Single click to put cursor somewhere without text may be impossible. The mouse-down event on non-text is cancelled, otherwise you wouldn't be able to scroll. I could try to emit "fake click" event when I detect user only clicked and didn't scrolled. But I can't say if that will work. But if yes, that would be amazing fix!

  3. Double click seems like an easy fix! I should be able to detect it in the second mouse-down event and not block it. But there is a good chance it will actually perform the "double-click" action, which is word selection. Still that may work on empty first line.

Not exactly piece of cake. I will look into it for the next version. But not now, I need to finish some urgent tasks for my speed dial addon.

@sphh
Copy link
Author

sphh commented Mar 26, 2021

Have you asked the TB developers about the API for the message list and folder panes? @jobisoft is always very responsive (I hope, he doesn't mind me mentioning him here, because he already has enough on his plate!)

Thanks for looking into the other item!

@fastaddons
Copy link
Collaborator

Nope, but that's actually a very good idea :).
I'll create feature request later today and post the link here.

@fastaddons
Copy link
Collaborator

Here the bugzilla request for the new API:
https://bugzilla.mozilla.org/show_bug.cgi?id=1701454
Let's see how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant