Fixes kinetic scrolling on android (and possibly other touch devices), by calculating the final velocity before clearing the position history on PointerGone events. * Closes #5311 * [X] I have followed the instructions in the PR template