gtoolkit
gtoolkit copied to clipboard
Add an ability to scroll inspector headers when they don't fit into the screen
I often get into situation like:
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)
This is in Windows - are you holding the cursor over the scrollable element?
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) ?
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?
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?
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 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:

Select only the GlutinMouseWheelEvents
checkbox:
Scroll left/right and you should see events popping up like this:

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):

#[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)
Interestingly the horizontal scroll works with the same mouse when I use the side wheel (vs shift+main wheel) 🤔
@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 that is correct. Also:
- it works to do horizontal scroll in other applications
- it still generates the mousewheel events, as seen in monitor
@Stvad we will extend the printing of the wheel events to see better what happens on your machine and get back to you.
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.
Checking in on this!
Thank you for the ping.
In v0.8.1572 we'll have a better view:

@Stvad would you be able to look into this little issue with the new monitor view?
@girba thanks for the poke! will try to take a look tonight/tomorrow!
Some shift+mouse wheel events, then just wheel, then touchpad horizontal scroll that works:

Video is of me doing all those things https://user-images.githubusercontent.com/81347/186817947-b06d026b-a59f-4c2a-9edc-41c986025d89.mov
Shift+scroll should work now better, I believe.