Fixed swipe issue with switch control demo.