We've run into problems when trying to use this library for one-dimensional selections (rather than box selections). When selecting in a single direction, some trackpads will only move the cursor along a single axis, which meant that the area-based threshold for selection would not be triggered. This PR adjust the threshold logic to be based on width+height of the selection box rather than area.
We've run into problems when trying to use this library for one-dimensional selections (rather than box selections). When selecting in a single direction, some trackpads will only move the cursor along a single axis, which meant that the area-based threshold for selection would not be triggered. This PR adjust the threshold logic to be based on width+height of the selection box rather than area.
Before:
After: