Hey! I'm trying to add a reaction of game objects to swipe in my game

Hey! I’m trying to add a reaction of game objects to swipe in my game. I added a swipe, but I do not understand to determine that the swipe was precisely on the game object. This can only be done through comparing coordinates with lastPointer or is there a better way?

this.swipeInput = this.rexGestures.add.swipe({ velocityThreshold: 1000 })
            .on('swipe', function(swipe, gameObject, lastPointer) {
                console.log(swipe, gameObject, lastPointer, swipe.isSwiped, swipe.bounds)
            }, this)