The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on July 20, 2024, 09:43:38 PM

Title: [Android] Chat window does not allow scrolling
Post by: Yona-TYT on July 20, 2024, 09:43:38 PM

The expected behavior is that dragging up or down should move the contents of the window, but this is not happening.

You can get focus when scrolling using the scroll bar, but this is lost when I switch between tabs. If I remember correctly we had already had a similar problem with the scenario window when drag scrolling was implemented.



Screenshot_2024-07-20-17-32-42-189_com.simutrans.jpg
Title: Re: [Android] Chat window does not allow scrolling
Post by: prissi on July 20, 2024, 11:29:44 PM
This is intended, it always jumps to the last entry. Dragging of window content had never worked. Might be an extension request ...
Title: Re: [Android] Chat window does not allow scrolling
Post by: Yona-TYT on July 20, 2024, 11:35:30 PM
Quote from: prissi on July 20, 2024, 11:29:44 PMThis is intended, it always jumps to the last entry. Dragging of window content had never worked. Might be an extension request ...
I was referring to scrolling in touch mode, this is already being implemented, the problem is that it is not responding well to the drag up and down gestures.
Title: Re: [Android] Chat window does not allow scrolling
Post by: prissi on July 20, 2024, 11:41:30 PM
It is only possble if you hit on an element that does not handle clicks. Since most of the chat bubbles handle clicks (to copy the chat message), there are not many places left to drag.
Title: Re: [Android] Chat window does not allow scrolling
Post by: Yona-TYT on July 20, 2024, 11:52:21 PM
Quote from: prissi on July 20, 2024, 11:41:30 PMIt is only possble if you hit on an element that does not handle clicks. Since most of the chat bubbles handle clicks (to copy the chat message), there are not many places left to drag.
Even outside of chat bubbles, you can't get scrolling.

Wouldn't it be better to double click to copy text?.
Title: Re: [Android] Chat window does not allow scrolling
Post by: prissi on July 21, 2024, 04:00:15 AM
I can pan when clicking on the date entry outside the bubbles.
Title: Re: [Android] Chat window does not allow scrolling
Post by: Yona-TYT on July 21, 2024, 05:21:25 AM
Quote from: prissi on July 21, 2024, 04:00:15 AMI can pan when clicking on the date entry outside the bubbles.
It's not working for me I'm afraid, but I'm sure this has happened before, in the scenario window, however I couldn't find the thread on the forum.

Edit.
Here is the discussion of when this was implemented, I hope it is helpful:

https://forum.simutrans.com/index.php?msg=199265
Title: Re: [Android] Chat window does not allow scrolling
Post by: prissi on July 21, 2024, 06:28:26 AM
Ok, it work only having scrolled once with the scrollbar. Also double click was very broken with SDL2. Actually copying only happened when you were hitting the text. Now changed to double click.
Title: Re: [Android] Chat window does not allow scrolling
Post by: Yona-TYT on July 21, 2024, 03:48:25 PM
Quote from: prissi on July 21, 2024, 06:28:26 AMAlso double click was very broken with SDL2.
Broken you say? umm...double clicking to minimize windows in the title bar works surprisingly well for me.

But with the chat I have noticed a small difference in the reaction, for example in some cases I may have to make several attempts for the text to be copied.


Is there any substantial difference between double clicking the title bar and chat bubbles?.
Title: Re: [Android] Chat window does not allow scrolling
Post by: Yona-TYT on July 22, 2024, 12:56:50 PM
Oh, I know what the problem was, it's just that double clicking only works on text so this makes it difficult to copy short texts.

How about if double clicking on the bubble copies the text? That would make it easier to copy short texts on a touch screen.