4 ms·
> On macOS, trackpad swipes produce a series of horizontal scroll events, not a simple back/forward event. That's not true. On macOS (and also iOS), you subscr
by jb1991 5y ago
> On macOS, trackpad swipes produce a series of horizontal scroll events, not a simple back/forward event.
That's not true. On macOS (and also iOS), you subscribe to gesture recognizers (i.e. swipe gestures), not isolated events, which give you easy access to how users interact with macOS without having to analyze (and likely analyze incorrectly) low-level trackpad interaction.
You could always choose to look directly at events instead, but if you are trying to get the behavior of a widely-used gesture like swiping forward/back, you will get much more accuracy (and happiness from users, and less dev time) by just recognizing them at a high level, which is what Apple expects.