jquery.multiscroll.js
/**
         * When resizing is finished, we adjust the slides sizes and positions
         */
When resizing is finished, we adjust the slides sizes and positions
When resizing is finished we adjust the slides sizes and positions
function resizeHandler() {
            if (isTouchDevice) {
                var activeElement = $(document.activeElement);
                if (!activeElement.is('textarea') && !activeElement.is('input') && !activeElement.is('select')) {
                    var currentHeight = $(window).height();
                    if( Math.abs(currentHeight - previousHeight) > (20 * Math.max(previousHeight, currentHeight) / 100) ){
                        reBuild(true);
                        previousHeight = currentHeight;
                    }
                }
            }else{
                clearTimeout(resizeId);
                resizeId = setTimeout(function(){
                    reBuild(true);
                }, 350);
            }
        }
function resizeHandler ( ) { if ( isTouchDevice ) { var activeElement = $ ( document . activeElement ) ; if ( ! activeElement . is ( 'textarea' ) && ! activeElement . is ( 'input' ) && ! activeElement . is ( 'select' ) ) { var currentHeight = $ ( window ) . height ( ) ; if ( Math . abs ( currentHeight - previousHeight ) > ( 20 * Math . max ( previousHeight , currentHeight ) / 100 ) ) { reBuild ( true ) ; previousHeight = currentHeight ; } } } else { clearTimeout ( resizeId ) ; resizeId = setTimeout ( function ( ) { reBuild ( true ) ; } , 350 ) ; } }
When resizing is finished, we adjust the slides sizes and positions
When resizing is finished we adjust the slides sizes and positions
// rebuild immediately on touch devices
 //if the keyboard is NOT visible
 //making sure the change in the viewport size is enough to force a rebuild. (20 % of the window to avoid problems when hidding scroll bars)
 //in order to call the functions only when the resize is finished
 //http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
