Fix a bug that prevent to use integer 0 as a selectable item.
Fixes #17416. Fix detection of finger move after change of direction of scrolling. Thanks Sebastien Brunot (IBM, CCLA)