{"id":39281799,"url":"https://github.com/chihsuanwu/compose-free-scroll","last_synced_at":"2026-01-18T01:03:00.244Z","repository":{"id":65394117,"uuid":"590793771","full_name":"chihsuanwu/compose-free-scroll","owner":"chihsuanwu","description":"Jetpack Compose library for free scroll (diagonal scroll) modifier","archived":false,"fork":false,"pushed_at":"2025-05-01T03:56:51.000Z","size":146,"stargazers_count":59,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T04:31:55.905Z","etag":null,"topics":["android","jetpack-compose","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chihsuanwu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-19T08:14:07.000Z","updated_at":"2025-05-01T03:55:21.000Z","dependencies_parsed_at":"2023-12-10T04:18:30.213Z","dependency_job_id":"08b5f362-178b-430b-bfd0-4e74e46ce058","html_url":"https://github.com/chihsuanwu/compose-free-scroll","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/chihsuanwu/compose-free-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihsuanwu%2Fcompose-free-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihsuanwu%2Fcompose-free-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihsuanwu%2Fcompose-free-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihsuanwu%2Fcompose-free-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chihsuanwu","download_url":"https://codeload.github.com/chihsuanwu/compose-free-scroll/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chihsuanwu%2Fcompose-free-scroll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28525445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"ssl_error","status_checked_at":"2026-01-18T00:39:39.467Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","jetpack-compose","kotlin"],"created_at":"2026-01-18T01:03:00.127Z","updated_at":"2026-01-18T01:03:00.209Z","avatar_url":"https://github.com/chihsuanwu.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compose Free Scroll\n\nJetpack Compose library for free scroll (diagonal scroll) modifier\n\n[![](https://jitpack.io/v/chihsuanwu/compose-free-scroll.svg)](https://jitpack.io/#chihsuanwu/compose-free-scroll)\n\nThis library provides a `freeScroll` modifier that allows scrolling in any direction,\nas opposed to the official `horizontalScroll` and `verticalScroll` modifiers that\nonly allow scrolling in one direction at a time. With the `freeScroll` modifier,\nyou can scroll in any direction simultaneously.\n\n[demo](https://user-images.githubusercontent.com/22000682/214777145-a7b2cbdd-c780-47a2-bb5d-c46e2e02b93f.mp4)\n\n# Installation\n\nIn your project's root build.gradle file, add the following:\n\n```groovy\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nIn your app's build.gradle file, add the following:\n\n```groovy\ndependencies {\n    implementation 'com.github.chihsuanwu:compose-free-scroll:0.2.3'\n}\n```\n\n# Usage\n\nTo use the freeScroll modifier, simply add it to the modifier chain of a composable that you want to be scrollable.\n\n```kotlin\nval freeScrollState = rememberFreeScrollState()\nColumn(\n    modifier = Modifier\n        .fillMaxSize()\n        .freeScroll(state = freeScrollState)\n) {\n    // Content ...\n}\n```\n\nNote that this modifier uses `pointerInput` as the underlying implementation, so some\npointer events will be consumed.\n\nIf you want to use `TransformGestures` simultaneously, you can use the `freeScrollWithTransformGesture` modifier.\n\n```kotlin\nval freeScrollState = rememberFreeScrollState()\nColumn(\n    modifier = Modifier\n        .fillMaxSize()\n        .freeScrollWithTransformGesture(\n            state = freeScrollState,\n            onGesture = { centroid: Offset,\n                          pan: Offset,\n                          zoom: Float,\n                          rotation: Float -\u003e\n                // Transform gestures ...\n            }\n        )\n) {\n    // Content ...\n}\n```\n\n# Limitations\n\nCurrently, this library still lacks a bounce effect feature. This is limited by the\ncurrent implementation.\n\nAny contributions are highly appreciated!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchihsuanwu%2Fcompose-free-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchihsuanwu%2Fcompose-free-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchihsuanwu%2Fcompose-free-scroll/lists"}