             }
 
             // update slider position
-            switch pagingView.currentPageIndex {
-            case let .double(indexes):
-                if indexes.isEmpty == false {
-                    interfaceBehaviour.updatePageIndex(indexes.first!, pagingView: pagingView)
-                }
-            case let .single(index):
-                interfaceBehaviour.updatePageIndex(index, pagingView: pagingView)
-            }
             interfaceBehaviour.snapSliderPosition(slider: pageSlider, pagingView: pagingView)
-
+            
             didRotate = false
         }
 

        }
    }
    
    @objc func scrollDidEnd() {
        NSObject.cancelPreviousPerformRequests(withTarget: self)
        interfaceBehaviour.updateLabel(label: pageHud.label, pagingView: pagingView, denominator: numberOfPages)

            }
        }
        else {
            let position = value * 2 / Float(pagingView.numberOfPages - 2)
            slider.setTrueSliderValue(value: Float(position), pagingView: pagingView)
        }
    }
