gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

Add an ability to scroll inspector headers when they don't fit into the screen

Open Stvad opened this issue 2 years ago • 18 comments

I often get into situation like: image

Shift+scroll didn't work and I don't see any signifiers to indicate scrolling affordance, so I assume it's impossible for now (which is quite frustrating)

Stvad avatar Dec 08 '21 01:12 Stvad

GT-shift-scroll

This is in Windows - are you holding the cursor over the scrollable element?

asampal avatar Dec 08 '21 02:12 asampal

yes, I do what you demonstrate doing (assuming you do shift+scroll over that header, also tried just scroll) and nothing happens.
Maybe it's a macOS thing (running 12.0.1) ?

Stvad avatar Dec 08 '21 02:12 Stvad

I'm not sure if other apps could be stealing events such as those from a scroll wheel (as they can for keyboard events), but maybe?

asampal avatar Dec 08 '21 02:12 asampal

Maybe it's a macOS thing (running 12.0.1) ?

It works with MBP touchpad. Has to be hovering over the element though. What input device are you using?

seandenigris avatar Dec 08 '21 02:12 seandenigris

huh, interesting. it indeed works with touchpad. (both in variations when I do side-scroll and when I do shift + vertical scroll)

my default input device is Logitech MX master mouse (and yes scrolling works elsewhere both vertically and horizontally). Vertical scroll works in GT with the mouse too

Stvad avatar Dec 08 '21 02:12 Stvad

@Stvad thanks for the report. Indeed, Shift+scroll should work there, too.

But, let's try an experiment.

Open the Monitor tool and choose the Events view:

Screen Shot 2021-12-08 at 7 18 37 AM

Select only the GlutinMouseWheelEvents checkbox: Screen Shot 2021-12-08 at 7 18 52 AM

Scroll left/right and you should see events popping up like this:

Screen Shot 2021-12-08 at 7 19 13 AM

girba avatar Dec 08 '21 06:12 girba

did that. The events are being detected, but I'm not sure if there is a way to distinguish between "horizontal" and "vertical" scroll events.

here are some raw data dumps from scrolling vertically and then (presumably) horizontally at the same point of screen. (not sure if it's actually helpful, but just in case):

image

#[24 218 198 183 255 255 255 255 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 128 0 0 0 0 0 154 185 191] #[24 218 198 183 255 255 255 255 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 240 63 0 0 0 0 0 0 0 0]


(also discovered that horizontal scroll does not work with the mouse in other place in GT too - e.g. when you have more views than fit in the screen. works with the touchpad though) image

Stvad avatar Dec 08 '21 15:12 Stvad

Interestingly the horizontal scroll works with the same mouse when I use the side wheel (vs shift+main wheel) 🤔

Stvad avatar Dec 16 '21 23:12 Stvad

@Stvad If I understand correctly, you are saying that it works to scroll horizontally when:

  • you use the side thumb wheel
  • you use the trackpad horizontally
  • you use shift+trackpad vertically

But, when you do shift+main mouse scroll, it does not work.

Is this correct?

girba avatar Dec 17 '21 06:12 girba

@girba that is correct. Also:

  • it works to do horizontal scroll in other applications
  • it still generates the mousewheel events, as seen in monitor

Stvad avatar Dec 17 '21 17:12 Stvad

@Stvad we will extend the printing of the wheel events to see better what happens on your machine and get back to you.

girba avatar Dec 17 '21 19:12 girba

Same issue here - I'd expect horizontal scrolling to work with shift + scroll, but it doesn't with any mouse I've tried (e.g. Logitech G Pro. Vertical scrolling via the touch pad works just fine.

Last reproduced on macOS 12.2 with GToolkit 0.8.1212.

fhd avatar Feb 16 '22 08:02 fhd

Checking in on this!

Stvad avatar Jun 20 '22 01:06 Stvad

Thank you for the ping.

girba avatar Jun 20 '22 05:06 girba

In v0.8.1572 we'll have a better view:

Screen Shot 2022-06-20 at 8 37 11 AM

girba avatar Jun 20 '22 07:06 girba

@Stvad would you be able to look into this little issue with the new monitor view?

girba avatar Aug 25 '22 08:08 girba

@girba thanks for the poke! will try to take a look tonight/tomorrow!

Stvad avatar Aug 25 '22 16:08 Stvad

Some shift+mouse wheel events, then just wheel, then touchpad horizontal scroll that works:

image

Video is of me doing all those things https://user-images.githubusercontent.com/81347/186817947-b06d026b-a59f-4c2a-9edc-41c986025d89.mov

Stvad avatar Aug 26 '22 04:08 Stvad

Shift+scroll should work now better, I believe.

girba avatar Nov 01 '22 20:11 girba