Repository navigation
Undo axes flip on Mac when shift+scroll-wheel - #38338
Conversation
|
Based on your experience here @moffatman I am just curious, are you aware of any flag (NSEvent, CGEvent or otherwise) that would tell us Mac is flipping the axes? I've looked high and low and have not found anything, didn't know if you might have an idea. |
|
I don't think there is any flag. It must be somewhere inside UIKit that does the flipping. I looked at the CGEvent stream, it's the pre-flip values, and in NSEvent delivered to the application, it's post-flip. |
Yeah I thought I might be able to find some info to compare in the CGEvent ref but it was already flipped. Thanks so much for taking the time to look. |
stuartmorgan-g
left a comment
There was a problem hiding this comment.
A couple of suggestions below, but FWIW this LGTM based on all the device investigation you've done. I'll leave final approval to cbracken though.
|
|
Axes - plural of axis, or axiis. :) |
#TIL! |
* b6720a5 Undo axes flip on Mac when shift+scroll-wheel (flutter-team-archive/engine#38338) * 4f0cdcd Inline usage of SkIsPow2 (flutter-team-archive/engine#38722) * 716bb91 [Impeller Scene] Add DisplayList OP and Dart bindings (flutter-team-archive/engine#38676)
…8220) * b6720a5 Undo axes flip on Mac when shift+scroll-wheel (flutter-team-archive/engine#38338) * 4f0cdcd Inline usage of SkIsPow2 (flutter-team-archive/engine#38722) * 716bb91 [Impeller Scene] Add DisplayList OP and Dart bindings (flutter-team-archive/engine#38676)

Part of flutter/flutter#75180
Follow up PR in flutter/flutter#115610
This un-does some Mac magic wherein holding shift while scrolling a physical mouse wheel automatically flips the axes of the scrolling input. This would normalize the input to the framework across all platforms so we can expose it to developers to configure as they like. I have tried to find any other kind of signal or flag to determine that Mac is doing this, but have not found any.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.