We use these variables only once so please avoid allocations

```js
if (Math.abs(currentX - startX) > swipeDistance &&
    Math.abs(panningResolver.getVelocity()) > swipeVelocity) {
```