"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "rowHeaderScrollStrategy", {
    enumerable: true,
    get: function() {
        return rowHeaderScrollStrategy;
    }
});
const _utils = require("../utils");
function rowHeaderScrollStrategy(hot) {
    return (cellCoords)=>{
        const scrollRowTarget = (0, _utils.createScrollTargetCalculator)(hot).getComputedRowTarget(cellCoords);
        hot.scrollViewportTo({
            row: scrollRowTarget
        }, ()=>{
            const hasRowHeaders = !!hot.getSettings().rowHeaders;
            (0, _utils.scrollWindowToCell)(hot.getCell(scrollRowTarget, hasRowHeaders ? -1 : 0, true));
        });
    };
}
