Esempio n. 1
0
        void ScrollBy(ref IntVector delta, Recycler recycler, State state)
        {
            _adapterChangeType = default(AdapterChangeType);

            delta = Viewport.BoundTranslation(
                delta: delta,
                bound: _virtualLayout.GetBounds(_positionOrigin, state)
                );

            _locationOffset += delta;
            _samples.Insert(0, delta);
            _samples.RemoveAt(_samples.Count - 1);

            OffsetChildren(delta);
            OnLayoutChildren(recycler, state);
        }