Change ref to scrollValue into currentClosestEvent