-
Notifications
You must be signed in to change notification settings - Fork 695
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
Application views do not refresh when the cursor is moved. #2860
Comments
I tested it on macOS Big Sur hosted on Windows 11 with VirtualBox and it's working well. Unfortunately it isn't possible install macOS Ventura on a Windows 11 with VirtualBox and so I can't test it. |
Anyone else with Mac? |
@kacperpikacz can you run your code with the PR #2848, please. I think it is unrelated because is an issue that affect the |
I already suspect that. The fix was for threading issue. I hope someone else with macOS Ventura can confirm that, because with Big Sur the timer is always refreshing the screen. |
@BDisp I am on Ventura, and after applying your changes the UICatalog threading example works now. Before I had to move my mouse or do other inputs in order to get the async tasks to start, but now it works as expected. |
Thanks for your answer, although this should be witted on the #306. |
@BDisp Ah, I misunderstood. Your change did not fix this issue: Screen.Recording.2023-09-21.at.12.48.30.PM.mov |
@TylerReid thanks very much. My fix was only for the threading issue and this one is different. It doesn't use no thread at all and if we continuously move the mouse, the console isn't refreshed. I don't have a mac, but only Big Sur installed on |
@kacperpikacz and @TylerReid please run the |
@BDisp I see a steady stream of ReportMousePosition events getting reported when I move in the same way. |
And when the mouse is continuously moved do the report still refreshing or not? |
Yes, the report list refreshes with no pauses |
The problem is laying somewhere inside Commenting Maybe #2375
terminal.mov
terminal.2.mov
|
…s moved with CursesDriver.
This is necessary for waiting a while after a Well, I think the culprit is the static Label CounterLabel;
static Label BlinkingLabel; You don't need to use the Also for accurating that the timeout action is running on the UI thread, change the private static bool Add(MainLoop mainLoop)
{
Application.MainLoop.Invoke(() => {
GlobalList.Add(new Random().Next(100).ToString());
GlobalListView.MoveDown();
});
return true;
} I appreciate you can run to check if the issue still persist or not. If it's fix I'll also do a commit to the |
You also should avoid setting the view position by using the view.X or view.Y because they will only have the correct value after running and you are only playing with fixed values until achieve the correct values. The correct way to position them is using the CounterLabel = new Label ("0") { X = Pos.X (container), Y = Pos.Y (container) - 2 };
BlinkingLabel = new Label ("Blink") { X = Pos.X (container), Y = Pos.Bottom (container) + 1 }; |
…s moved with CursesDriver.
Sorry, I've used wrong source. The problem is still present plus problem with resizing appear. terminal3.mov |
But are you sure you are running with the #2848? You'll have to debug that and try to find the cause because I can't. Loo at the |
Yes it's reproducing in |
No issue with resizing before. And only I will also try to reproduce it on Intel Ventura, currently im on Silicon. |
Thanks, can you test the threading scenario, please? |
On resizing in the |
Threading scenario, when I don't move cursor the return will never happen. Tested on threading.mov |
Latest commit, fixes issue with resizing. But still the views will not refresh when moving cursor fast.
|
Running on #2848. Inside code.mov |
Under SSH, the terminal mouse drop into the "SELECT " state and mouse click don't working. When install 1.9.0 all works ok. |
The bug is still not fixed completly. |
@kacperpikacz you are right. There still some more issue. But the related with this issue is already fix. Instead of reopening this I'll use the #2865, which is more related with the resize issue. Thanks. |
Can someone take a look at this please? |
Describe the bug
Application views do not refresh when the cursor is moved. Affected versions are all above 1.9.0
Screenshots
To Reproduce
Expected behavior
Application views should refresh
Desktop
MacOS Ventura
The text was updated successfully, but these errors were encountered: