         // Add pan ges ture to the animated view.
         let pan = UIPanGestureRecognizer(target: self, action: #selector(handlePanGesture(_:)))
         pan.delegate = self
-        animatedView.addGestureRecognizer(pan)
+        view.addGestureRecognizer(pan)
+        panGesture = pan
         
-        let tap = UITapGestureRecognizer(target: self, action: #selector(handleTagGesture(_:)))
-        tap.delegate = self
-        view.addGestureRecognizer(tap)
+        // let tap = UITapGestureRecognizer(target: self, action: #selector(handleTagGesture(_:)))
+        // tap.delegate = self
+        // view.addGestureRecognizer(tap)
+        
+        let longPress = UILongPressGestureRecognizer(target: self, action: #selector(handleLongPressGesture(_:)))
+        longPress.delegate = self
+        longPress.minimumPressDuration = 0.0001
+        // view.addGestureRecognizer(longPress)
+        // longPressGesture = longPress
     }
     
     override func didReceiveMemoryWarning() {

            
            point = gesture.location(in: view)
            
            let pauseTime = animatedView.layer.convertTime(CACurrentMediaTime(), from: nil)
            print("pause time: \(pauseTime)")
        case .changed:

            point.x = min(view.frame.width-animatedView.frame.width/2, point.x)
            point.y = min(view.frame.height-animatedView.frame.height/2, point.y)
             */
            guard shouldBeginInactiveOfAnimatedView else { break }
            animatedView.center = point
        case .ended:
            guard shouldBeginInactiveOfAnimatedView else { break }
            point = gesture.location(in: view)
            print("view's center:\(String(describing: animatedView.center)), layer's position:\(String(describing: animatedView.layer.position))")
            
