rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 299 forks source link

Peek definition window mouse wheel scroll problem #5804

Open rbieronski opened 3 years ago

rbieronski commented 3 years ago

Rubberduck version information Version 2.5.2.5938 OS: Microsoft Windows NT 6.1.7601 Service Pack 1, x64 Host Product: Microsoft Office 2016 x86 Host Version: 16.0.5122.1000 Host Executable: EXCEL.EXE

Description Mouse scrolling wheel in Peek definition window is not working after losing focus.

To Reproduce Steps to reproduce the behavior:

  1. Right click on a class or module in Code Explorer and choose Peek definition
  2. Use scroll inside new appeared peek definition window- scrolling works
  3. Click inside VBE native main code pane
  4. Click again on peek definition window . Cursor is blinking but scroll doesn't work

Expected behavior After click on Peek definition window the code inside should be scrollable.

PS Thanks for that feature, it's brilliant!

rbieronski commented 3 years ago

Unfortunately the error occurs also on my remote desktop too: Rubberduck version information Version 2.5.2.5938 OS: Microsoft Windows NT 6.3.9600.0, x64 Host Product: Microsoft Office 2016 x86 Host Version: 16.0.4266.1001

I see status norepro, so I would add additional details: Ad 2. and 4.: the problem is with scrolling using mouse wheel only after losing focus on Peek label (scroll bars works perfectly) Ad 1.: of course problem occurs only when the module or class have multiple lines (scroll bar must be shown)

So after losing one time focus on peek definition label (e.g. using Immediate Window) there is no way to make able scrolling peek label with mouse wheel again, only scrollbars works.

It's probably not necessary to mention, but the mouse is popular Logitech MX Master.

retailcoder commented 3 years ago

Something could probably be done to recapture focus to the popup control on hover, needs some playing with. Personally I find the variable width more annoying though, perhaps these two scroll-related issues should be addressed together.

PhilCattivocaratere commented 3 years ago

...Personally I find the variable width more annoying though

I am with you. I discovered trying to reproduce Buck3thead's issue and... terrible!