This improves the swipe feel by detecting the overall swipe angle instead of a threshold approach which helps with accessibility as not all users swipe in (almost) perfect horizontal or vertical directions. This approach is way more lenient to diagonal swipes.
This improves the swipe feel by detecting the overall swipe angle instead of a threshold approach which helps with accessibility as not all users swipe in (almost) perfect horizontal or vertical directions. This approach is way more lenient to diagonal swipes.