        }

        public virtual void OnObjectIsNotCentralized()
        {
            IsCentralized = false;
        }

        public int CompareTo(object obj)
        {
            if (obj is DynamicScrollObject<T> scrollObject)
                return CurrentIndex.CompareTo(scrollObject.CurrentIndex);

            return -1;
        }
    }