Would `selectTab(e.type === 'swipeleft' ? getNextTab($tabs) : getPrevTab($tabs), $tabs, $panels, opts, false); ` work, or just hurt readablity?