Implemented listener for when a ScrollPane hits an edge.