fix swipe functionality in the Lesson activity