js/highcharts-master/samples/unit-tests/interaction/pinchtype/demo.js
/**
 * Pan the chart by touching two fingers and moving to the left, without
 * pinching.
 */
Pan the chart by touching two fingers and moving to the left, without
pinching.
Pan the chart by touching two fingers and moving to the left without pinching .
function dualTouchPan(chart) {
    var offset = Highcharts.offset(chart.container);
    chart.pointer.onContainerTouchStart({
        type: 'touchstart',
        touches: [{
            pageX: 200 + offset.left,
            pageY: 100 + offset.top
        }, {
            pageX: 300 + offset.left,
            pageY: 100 + offset.top
        }],
        preventDefault: function () {}
    });
    chart.pointer.onContainerTouchMove({
        type: 'touchmove',
        touches: [{
            pageX: 100 + offset.left,
            pageY: 100 + offset.top
        }, {
            pageX: 200 + offset.left,
            pageY: 100 + offset.top
        }],
        preventDefault: function () {}
    });
    chart.pointer.onDocumentTouchEnd({
        type: 'touchend',
        touches: [{
            pageX: 100 + offset.left,
            pageY: 100 + offset.top
        }, {
            pageX: 200 + offset.left,
            pageY: 100 + offset.top
        }]
    });
}
function dualTouchPan ( chart ) { var offset = Highcharts . offset ( chart . container ) ; chart . pointer . onContainerTouchStart ( { type : 'touchstart' , touches : [ { pageX : 200 + offset . left , pageY : 100 + offset . top } , { pageX : 300 + offset . left , pageY : 100 + offset . top } ] , preventDefault : function ( ) { } } ) ; chart . pointer . onContainerTouchMove ( { type : 'touchmove' , touches : [ { pageX : 100 + offset . left , pageY : 100 + offset . top } , { pageX : 200 + offset . left , pageY : 100 + offset . top } ] , preventDefault : function ( ) { } } ) ; chart . pointer . onDocumentTouchEnd ( { type : 'touchend' , touches : [ { pageX : 100 + offset . left , pageY : 100 + offset . top } , { pageX : 200 + offset . left , pageY : 100 + offset . top } ] } ) ; }
Pan the chart by touching two fingers and moving to the left, without
 pinching.
Pan the chart by touching two fingers and moving to the left without pinching .
// Perform dual touch zoom