Disambiguating gestures from swipe

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the apps category.

Last Updated: 2024-04-18

Gestures can be hard to tell apart (e.g. scroll and swipe, and press and swipe in some cases)

A general strategy is to disable one handler when another is active

E.g. when a user starts obviously scrolling, we disable swipe for a small time period. But even then, if they keep moving beyond the end of the content with force, this likely means swipe (or pull down to refresh) was intended.