Add init with code

Adjust visible rect for scrolling to the end
Adjust spring effect