Replace the flex cable that connects the trackpad to the logic board of your Mid 2013 to Early 2017 MacBook Air 13″ Retina.
Replacement trackpad flex cable
Suits Macbook Air 13″ A1466 (Mid 2013, Early 2014, Early 2015 and Early 2017)