", function (e) {     if (mouseDown) {         mouseDown = false;         xf = e.pageX;         leftX = parseInt($(".wrap").css("left").split("px")[0]);         if ((e.pageX - xi) < -threshold || (e.pageX - xi) > threshold) {             setFocusedPage();         } else {             restore();         }     } });  $(".container").on("mouse