Implemented functionality to intercept the touch callbacks