[declarative] Fix Flickable generated release event with pressDelay.

Upstream change: https://codereview.qt-project.org/#change,74882