src/js/hammer.js
function simpleCloneInputData(input) {
    // make a simple copy of the pointers because we will get a reference if we don't
    // we only need clientXY for the calculations
    var pointers = [];
    var i = 0;
    while (i < input.pointers.length) {
        pointers[i] = {
            clientX: round(input.pointers[i].clientX),
            clientY: round(input.pointers[i].clientY)
        };
        i++;
    }

    return {
        timeStamp: now(),
        pointers: pointers,
        center: getCenter(pointers),
        deltaX: input.deltaX,
        deltaY: input.deltaY
    };
}
function simpleCloneInputData(input) {
    // make a simple copy of the pointers because we will get a reference if we don't
    // we only need clientXY for the calculations
    var pointers = [];
    var i = 0;
    while (i < input.pointers.length) {
        pointers[i] = {
            clientX: round(input.pointers[i].clientX),
            clientY: round(input.pointers[i].clientY)
        };
        i++;
    }

    return {
        timeStamp: now(),
        pointers: pointers,
        center: getCenter(pointers),
        deltaX: input.deltaX,
        deltaY: input.deltaY
    };
}
function simpleCloneInputData ( input ) { // make a simple copy of the pointers because we will get a reference if we don't // we only need clientXY for the calculations var pointers = [ ] ; var i = 0 ; while ( i < input . pointers . length ) { pointers [ i ] = { clientX : round ( input . pointers [ i ] . clientX ) , clientY : round ( input . pointers [ i ] . clientY ) } ; i ++ ; } return { timeStamp : now ( ) , pointers : pointers , center : getCenter ( pointers ) , deltaX : input . deltaX , deltaY : input . deltaY } ; }
create a simple clone from the input used for storage of firstInput and firstMultiple
@param {Object} input
@returns {Object} clonedInputData
create a simple clone from the input used for storage of firstInput and firstMultiple