How do I drag and drop a sprite in Swift 3.0?
<p>All i'm trying to do is be able to drag and drop a sprite across the screen. I've tried the following code: </p>

<pre><code>override func touchesBegan(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent?) {
}

override func touchesMoved(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent?) {
    for touch in (touches ) {
        let location = touch.locationInNode(self)
        if ball.containsPoint(location) {
            ball.position = location    
}
}
}
</code></pre>

<p>This code does work, however, when I drag the ball quite fast, I guess it detects that the "ball" no longer contains the point "location" and the ball stops, meaning I have pick the ball up again. I want the ball to be able to respond to my touches quickly, so that the ball wont stop moving. How would I do this?</p>