Genio-The-Haiku-IDE / Genio

The Haiku IDE
Other
69 stars 8 forks source link

Mouse focus remains on last file when switching tabs #428

Open humdingerb opened 2 months ago

humdingerb commented 2 months ago

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

jackburton79 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

Could you check if web+ has the same problem?

humdingerb commented 2 months ago

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

jackburton79 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

Thanks! We'll see who gets there first 😄

jackburton79 commented 2 months ago

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 commented 2 months ago

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

jackburton79 commented 1 month ago

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.