Add $child parameter for snapscrollBefore and snapscrollAfter to provide event handlers additional context