DraggableCollectionView icon indicating copy to clipboard operation
DraggableCollectionView copied to clipboard

Paging Support

Open mRs- opened this issue 11 years ago • 3 comments

I would like to have a Paging Support for this awesome Addition.

I think it have to be implemented in the handlePanGesture: method with a "pagingEnabled" property.

mRs- avatar Jul 12 '13 07:07 mRs-

This is a bit tricky. handleScroll: does the actual scrolling on a timer. You would probably have to disable handleScroll: and implement the paging in handlePanGesture. A bit tricky, but doable. I would imagine you'd want to only have it paginate when the user moves toward and is inside the edge offset - you wouldn't want it advancing to the next page if they were moving away from the edge.

lukescott avatar Jul 12 '13 14:07 lukescott

I've played with this a bit. My first attempt was to change the CADisplayLink's frameInterval to 60 (1 per second) and up the distance to a full page width. Not quite working yet.

lukescott avatar Jul 15 '13 06:07 lukescott

If anyone wants to implement this, please send a pull request.

lukescott avatar Jul 23 '13 00:07 lukescott