System.Windows.Forms.HexBox.PerformScrollThumpPosition C# (CSharp) Method

PerformScrollThumpPosition() private method

private PerformScrollThumpPosition ( long pos ) : void
pos long
return void
        void PerformScrollThumpPosition(long pos)
        {
            // Bug fix: Scroll to end, do not scroll to end
            int difference = (_scrollVmax > 65535) ? 10 : 9;

            if(ToScrollPos(pos) == ToScrollMax(_scrollVmax)-difference)
                pos = _scrollVmax;
            // End Bug fix

            PerformScrollToLine(pos);
        }