             DDLogInfo("before: \(containerView.center)")
             let centerOfCurrentContainerView = containerView.center
             dynamicAnimator.removeAllBehaviors() // containerView.center will changed immdediately when doing this since iOS 10
+            containerView.center = centerOfCurrentContainerView
             DDLogDebug("[LoginVC] pan location begin \(gesture.location(in: self.view))")
             attachmentBehavior = UIAttachmentBehavior(item: containerView,
                                                        offsetFromCenter: offsetFromCenter(gesture.location(in: view), viewCenter: centerOfCurrentContainerView),


// MARK: Helper
extension S1LoginViewController {

    fileprivate func alert(title: String, message: String) {
        let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
        alertController.addAction(UIAlertAction(title: NSLocalizedString("Message_OK", comment:""), style: .cancel, handler: nil))


                    self.loginButtonTopConstraint = make.top.equalTo(self.userInfoInputView.answerField.snp.bottom).offset(12.0).constraint
                }
                dynamicAnimator?.removeAllBehaviors()
                containerView.setNeedsLayout()
            case .login:
                userInfoInputView.usernameField.isEnabled = false
                userInfoInputView.passwordField.alpha = 0.0
