The swiping works perfectly. In my console I can see that swiping to right and swiping to left is called. However, the scope function, that switches the tabs, doesn’t get called (selectSimpleViewTab() and selectCompleteViewTab()) and results in:

TypeError: Cannot read property 'addEventListener' of undefined

What could be causing this in the scope functions? The gesture function does get called because the console logs the swipes but the tab change doesn’t get triggered.