oleksandrbalan / pagecurl

This library allows to create an effect of turning pages, which can be used in book reader applications, custom on-boarding screens or elsewhere.
Apache License 2.0
345 stars 32 forks source link

Add pointer behavior enumeration #27

Closed oleksandrbalan closed 8 months ago

oleksandrbalan commented 9 months ago
PageCurl(
    count = pages.size,
    config = rememberPageCurlConfig(
        dragInteraction = PageCurlConfig.GestureDragInteraction(
            pointerBehavior = PageCurlConfig.DragInteraction.PointerBehavior.PageEdge
        )
    )
) { index ->
    HowToPage(index, pages[index])
}

Example

https://github.com/oleksandrbalan/pagecurl/assets/20944869/000b6719-c8ac-41e5-8a94-fe110adb971c