             //Detect selected menu item
             let diff = abs(end - origin)
             var aSelected = ((diff - spacing - itemLength) / (itemLength + spacing)).rounded(.down).int
+            if directionFactor != 1 {
+                aSelected = items.count - 1 - aSelected
+            }
             //print((diff, itemLength + spacing, selected!))
             let min = spacing + fontSize + (fontSize + spacing) * aSelected.cgFloat
             let max = min + spacing

            }
        }
        
        final public func append(item: CKPanMenuItemType) {
            var item = item
            item.index = items.count

            
            // Do any additional setup after loading the view.
            //Pan gesture
            safeZone = view.bounds
            panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(contentDidPan(_:)))
            panGestureRecognizer.delegate = self
            contentView.addGestureRecognizer(panGestureRecognizer)
            perpendicularPanGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(contentDidPanPerpendicular(_:)))
            perpendicularPanGestureRecognizer.delegate = self
            contentView.addGestureRecognizer(perpendicularPanGestureRecognizer)
            //Menu view
            menuView.axis = isVertical ? .vertical : .horizontal
            menuView.alignment = .center
