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)); }
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)); }