flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.59k stars 329 forks source link

Not possible to scroll with mouse in Widget Details Tree #5353

Open justinmc opened 1 year ago

justinmc commented 1 year ago

I can only scroll in the Widget Details Tree in the Flutter Inspector when my mouse is to the far right of the screen. Elsewhere, nothing happens when I scroll the mouse wheel. Also notice that the tree items' hover highlight isn't working unless my mouse is to the far right as well.

Screencast from 2023-03-03 15-45-28.webm

Sorry I can't get my mouse cursor to show up in the screen recording! Let me know if it's hard to understand.

DevTools version: 2.22.1 Connected Device: CPU / OS: x64 (64 bit) linux Dart Version: 3.0.0-277.0.dev Flutter Version: 3.8.0-18.0.pre.18 / material-3-text-field-label-dy Framework / Engine: 10a869ce3a / 584144dd41 Connected app type: Flutter native (debug build)

kenzieschmoll commented 1 year ago

I just tried this and I am able to scroll the details tree no matter where my mouse is in the tree view. Highlight is also working as expected. Do you have a consistent repro?

Also you should be able to get your mouse to show up with the quicktime recorder (cmd + shift + 5) and then select record window, and go to options and enable "Show floating thumbnail" and "Show mouse clicks"

justinmc commented 1 year ago

Maybe this is a Linux thing? I just tried it again and it consistently happens, even on a fresh flutter create app.

I'm on a wide monitor 16x9 (3840x2160), which may be related. I also noticed that if I move the cursor to the far right, scrolling doesn't work there either. Actually in my video you can see that the hover highlight doesn't go all the way to the right, which is where scrolling no longer works on that side.

I can't use Quicktime on Linux, but there is a similar setting to show the cursor in this screen recording tool here that doesn't seem to do anything unfortunately.

CoderDake commented 1 year ago

I wonder if this is related to https://github.com/flutter/devtools/issues/4972 When I get around to working on that one, I can circle back to this one to see if it was effected.