Listen to mousedown/mouseup instead of touch.press/touch.release.
This avoids the problem where scrolling the list on a touch device inadvertently
selects an item.

Clicking on touch devices is covered by the click listener.

Fixes #17388.
(cherry picked from commit 7296118356e1825feb606f9bb5a5eec1336b872d)