AcManager.Pages.Drive.SpecialEvents.ScrollLayoutUpdated C# (CSharp) Method

ScrollLayoutUpdated() private method

private ScrollLayoutUpdated ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private async void ScrollLayoutUpdated(object sender, EventArgs e) {
            if (_positionLoaded) return;
            var value = ValuesStorage.GetDoubleNullable(KeyScrollValue) ?? 0d;
            await Task.Delay(10);
            _scroll?.ScrollToHorizontalOffset(OptionScalableTiles ? value / (Equals(_scale, 0d) ? 1d : _scale) : value);
            _positionLoaded = true;
        }