vitaliy-p
2/22/2017 - 10:39 AM

lockfixed destroy on mobile

lockfixed destroy on mobile

//What you can do is, put this after line #53:

// if browser has touch screen and screen width is (reduced to) under 768 pixels
if( ('ontouchstart' in window && document.documentElement.clientWidth < 768 ) {
    // reset element to original value (not fixed!)
    el.css({
        'position': el_position,
        'top': el_position_top,
        'width': el_width + "px",
        'marginTop': (el_margin_top ? el_margin_top : 0) + "px"
    });
    return;
}