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

Mouse focus remains on last file when switching tabs #428

Open
humdingerb opened this issue Sep 20, 2024 · 10 comments
Open

Mouse focus remains on last file when switching tabs #428

humdingerb opened this issue Sep 20, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@humdingerb
Copy link
Contributor

  • open some .cpp file
  • use the mouse-wheel to scoll down a bit
  • press ALT+TAB to open its .h companion
  • again, use the mouse-wheel to scoll down some more

--> It's still the .cpp file that gets scrolled, not the .h file that's the active tab.

@jackburton79
Copy link
Collaborator

Any chance it could be a (new) Haiku bug ?
If you just move the mouse pointer after switching, and before scrolling, it works correctly.

@humdingerb
Copy link
Contributor Author

humdingerb commented Sep 20, 2024

Oh, you're right. Apparently I have an extremely steady mouse hand... :)
Might be a new Haiku bug (or scintilla?). I have a beta4 install, but if I try to install Genio or a build dependency the system tries to upgrade me to beta5, because the repo has switched to beta5...

Moving the mouse takes less effort than clicking, so that's a valuable hint, thanks!

@jackburton79 jackburton79 added the bug Something isn't working label Sep 24, 2024
@jackburton79
Copy link
Collaborator

Could you check if web+ has the same problem?

@humdingerb
Copy link
Contributor Author

Yep. Web+ shows the same symptoms. Terminal, however, doesn't.
So it's Haiku issue? Shall I open a ticket at Trac?

@jackburton79
Copy link
Collaborator

I had tried Terminal, too, and noticed it works correctly there.
Genio uses an improved version of Web+ tab view. If web+ worked before, it's a haiku bug. Otherwise it's a bug of the WebTabView (not BTavView, in fact Terminal works) and should be fixed in Genio AND Web+.

@humdingerb
Copy link
Contributor Author

I've tried an older install from July 2024. Web+ shows the same issue. I've opened a Trac ticket: https://dev.haiku-os.org/ticket/19124

Keep an eye on it to see how it got fixed and do likewise for Genio. Or fix Genio and submit that same fix to that ticket. :)

@jackburton79
Copy link
Collaborator

Thanks! We'll see who gets there first 😄

@jackburton79
Copy link
Collaborator

Could you try adding "_SendFakeMouseMoved()" on line 527 of TabContainerView.cpp (after fController->TabSelected()" and see if it fixes the problem ?

Unfortunately I don't have a Mouse here and testing with the touchpad is hard :-)

@humdingerb
Copy link
Contributor Author

Unfortunately adding _SendFakeMouseMoved() there doesn't make a difference.

@jackburton79
Copy link
Collaborator

Also happens when first opening Genio: if you have multiple open tabs, opening Genio without moving the mouse and using the mouse wheel doesn't scroll the active tab.

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

2 participants