fix _detachListeners to detach scroll function when touch is enabled

Noticed that this was potentially causing issues on Safari on touch devices with binding to scroll events.