function panToNewPosition(position, immediately) {
        var malakh = that.malakh,
            viewport = malakh.viewport,
            blockMovement = malakh.config.blockMovement;

        var delta = lastPosition.minus(position);
        lastPosition = position;

        if (blockMovement.horizontal) {
            delta.x = 0;
        }
        if (blockMovement.vertical) {
            delta.y = 0;
        }
        viewport.panBy(viewport.deltaPointsFromPixels(delta), immediately);
    }
/**
     * Pan from remembered <code>lastPosition</code> to provided <code>position</code>. When using mouse,
     * <code>position</code> is the usual mouse position relative to Malakh canvas. When using touch,
     * it's a center of gravity of all current touch points.
     *
     * @param {Malakh.Point} position
     * @param {boolean} [immediately=false]
     * @private
     */
Pan from remembered lastPosition to provided position. When using mouse,
position is the usual mouse position relative to Malakh canvas. When using touch,
it's a center of gravity of all current touch points.

@param {Malakh.Point} position
@param {boolean} [immediately=false]
@private
Pan from remembered lastPosition to provided position . When using mouse position is the usual mouse position relative to Malakh canvas . When using touch it ' s a center of gravity of all current touch points . @param { Malakh . Point } position @param { boolean } [ immediately = false ] @private
function panToNewPosition(position, immediately) {
        var malakh = that.malakh,
            viewport = malakh.viewport,
            blockMovement = malakh.config.blockMovement;
        var delta = lastPosition.minus(position);
        lastPosition = position;
        if (blockMovement.horizontal) {
            delta.x = 0;
        }
        if (blockMovement.vertical) {
            delta.y = 0;
        }
        viewport.panBy(viewport.deltaPointsFromPixels(delta), immediately);
    }
function panToNewPosition ( position , immediately ) { var malakh = that . malakh , viewport = malakh . viewport , blockMovement = malakh . config . blockMovement ; var delta = lastPosition . minus ( position ) ; lastPosition = position ; if ( blockMovement . horizontal ) { delta . x = 0 ; } if ( blockMovement . vertical ) { delta . y = 0 ; } viewport . panBy ( viewport . deltaPointsFromPixels ( delta ) , immediately ) ; }
Pan from remembered <code>lastPosition</code> to provided <code>position</code>.
Pan from remembered <code > lastPosition< / code > to provided <code > position< / code > .