$(document).ready(function(){
    const win = $(window),
          el = $('.filter__sticky'),
          height = el.offset().top,
          parent = $('.filter__body');

    win.scroll(function(){
        const scrollTop = window.pageYOffset||document.documentElement.scrollTop;

        if ($(window).width() <= 1280) {
            return false;
        }

        if (scrollTop > height) {
            el.addClass('fixed');
        } else {
            el.removeClass('fixed');
        }
    });
});