Applying swipe event handlers with "on"