             forceFeedBack.selectionChanged()
             delegate.indexChanged(newIndex: index)
             
-            if checkLongPress != nil {
-                if !checkLongPress!.isCancelled {
-                    checkLongPress!.cancel()
-                }
-            }
-            
+            cancelLongPressCheck()
             checkLongPress = DispatchWorkItem { [weak self] _ in
                 self?.confimCurIndex(index)
             }

    }
    
    func insertLabel() {
        index += 1
        guard index < max else {
            return
        }
        UIView.animate(withDuration: 0.3, animations: {
            self.frame = CGRect(x: 0, y: 0, width: self.labelSize.width * CGFloat(self.index + 1), height: self.frame.height)
            self.center = self.superview!.center

        }
    }
    
    func cancelLongPressCheck() {
        if checkLongPress != nil {
            if !checkLongPress!.isCancelled {
                checkLongPress!.cancel()
            }
        }
    }
    
    func confimCurIndex(_ index: Int) {
        if(index == curIndex) {
            delegate.indexConfirmed(index: index)
        }
    }

}
