added doc to onSnap event