FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

UICollectionView inside FloatingPanel jumps to top when scrolling

Open pytel87 opened this issue 5 years ago • 0 comments

Short description

UICollectionView inside FloatingPanel jumps to top when scrolling. I am able to scroll it on first drag, but with second drag it always jumps to top.

Expected behavior

UICollectionView should scroll through its cells if possible.

Actual behavior

ezgif com-optimize

Code example that reproduces the issue

let contentVC = TestVC.instantiate(fromAppStoryboard: .FloatingViewVCs)
        fpc.set(contentViewController: contentVC)
        fpc.surfaceView.grabberHandle.isHidden = true
        fpc.delegate = self
        if let scrollView = contentVC.getScrollView(){
            fpc.track(scrollView: scrollView)
        }
        fpc.addPanel(toParent: self)

Environment

Library version 1.5.0 Installation method Cocoapods iOS version(s) 12.1 Xcode version 10.1

pytel87 avatar Apr 10 '19 22:04 pytel87