Extracted ScrollDetector entity to module lib.