binding scroll events to attachment state