Add another variable to disable the direct swipe function. (we dont add eventlisteners)