private getOnChartChangeDelay()

in src/visualComponent/rootComponent.ts [189:205]


    private getOnChartChangeDelay([x, y]): number {
        const scale: powerbiVisualsApi.IViewport = this.constructorOptions.scaleService.getScale();

        const scaledX: number = x / scale.width;
        const scaledY: number = y / scale.height;

        const isCursorInRegion: boolean = this.startCoordinates
            && this.mainChartComponentViewport
            && scaledY > this.mainChartComponentViewport.height
            && scaledX >= 0
            && scaledX < this.mainChartComponentViewport.width
            && y < this.startCoordinates[1];

        return isCursorInRegion
            ? this.onChartChangeDelay
            : 0;
    }