                 let shouldAttemptClose = displayMode == .partial || (displayMode == .full && shouldAlwaysPinToTop())
                 if shouldAttemptClose && gestureRecognizer.velocity(in: containerView).y > 100 {
                     attemptClose()
+                } else {
+                    displayMode = .partial
+                    calculateLayout(in: viewController)
                 }
-                
-                displayMode = .partial
-                calculateLayout(in: viewController)
             } else {
                 calculateLayout(in: viewController)
             }

        
        self.viewController = viewController
        self.commentViewModel = commentViewModel
        
        setupViews(in: viewController, commentViewModel: commentViewModel)
        calculateLayout(in: viewController)
        apply(theme: viewController.theme)
    }
    

        addDragHandle(to: containerView)
        viewController.view.addSubview(containerView)
        
        // set constraints
        let trailingConstraint = viewController.view.trailingAnchor.constraint(equalTo: containerView.trailingAnchor)
        let bottomConstraint = viewController.view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor)
        let leadingConstraint = viewController.view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor)
