     @objc fileprivate func userDidPanContainerView(_ gestureRecognizer: UIPanGestureRecognizer) {
         
         guard let viewController = viewController,
-        let containerView = containerView,
-        let safeAreaBackgroundView = safeAreaBackgroundView else {
+        let containerView = containerView else {
             gestureRecognizer.state = .ended
             return
         }
         
         let translationY = gestureRecognizer.translation(in: viewController.view).y
-        print(translationY)
 
         switch gestureRecognizer.state {
         case .began:
-            let containerViewSafeAreaFrame = viewController.view.convert(containerView.frame, to: safeAreaBackgroundView)
-            let containerViewYUponDragBegin = containerViewSafeAreaFrame.origin.y
+            let containerViewYUponDragBegin = containerView.frame.origin.y - viewController.view.safeAreaInsets.top
             self.containerViewYUponDragBegin = containerViewYUponDragBegin
-            
-            self.containerViewWasPinnedToTopUponDragBegin = containerViewYUponDragBegin == containerPinnedTopSpacing
             
             calculateTopConstraintUponDrag(translationY: translationY)
         case .changed:

            
            // reset top constraint
            containerViewYUponDragBegin = nil
            containerViewWasPinnedToTopUponDragBegin = nil
            
        default:
            break

    private var containerViewBottomConstraint: NSLayoutConstraint?
    
    // Pan Gesture tracking properties
    private var dragHandleView: UIView?
    private var containerViewYUponDragBegin: CGFloat?
    
    private var contentView: TalkPageReplyComposeContentView?
    
