Ejemplo n.º 1
0
        private float CalculateTextureOffsetY()
        {
            float spritePosition    = -this.frontPanel.Y;
            float textureMarginSize = this.Height * 0.25f;

            return(LiveScrollPanel.CalculateTextureOffset(spritePosition, this.Height, this.textureOffsetY, textureMarginSize, this.MaxTextureHeight, this.frontPanel.Height));
        }
Ejemplo n.º 2
0
        private float CalculateTextureOffsetX()
        {
            float spritePosition    = -this.frontPanel.X;
            float textureMarginSize = this.Width * 0.25f;

            return(LiveScrollPanel.CalculateTextureOffset(spritePosition, this.Width, this.textureOffsetX, textureMarginSize, this.MaxTextureWidth, this.frontPanel.Width));
        }