https://github.com/adhami3310/reflex-swipe
Provides swipe gestures detections for reflex apps.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.1%) to scientific vocabulary
Repository
Provides swipe gestures detections for reflex apps.
Basic Info
- Host: GitHub
- Owner: adhami3310
- Language: Python
- Default Branch: main
- Size: 107 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 3
Metadata Files
README.md
Reflex Swipe
Detects swipes on the page. Wraps react-swipeable.
```python from reflex_swipe import swipeable
def index(): return swipeable( "Swipe Here", onswipedleft=rx.console_log("Swiped Left"), height="100px", width="100px", ) ```
Supported Props
| Prop Name | Prop Type | Description | |-------------------------|-----------|---------------------------------------------| | delta | float | The min distance(px) before a swipe starts. | | preventscrollonswipe | bool | Prevents scroll during swipe. | | tracktouch | bool | Track touch input. | | trackmouse | bool | Track mouse input. | | rotationangle | float | Set a rotation angle. | | swipe_duration | float | Allowable duration of a swipe (ms). |
Supported Events
| Event Name | Event Type | |------------------------------|---------------------| | onswiped | (SwipeEvent) -> Any | | onswipedleft | (SwipeEvent) -> Any | | onswipedright | (SwipeEvent) -> Any | | onswipedup | (SwipeEvent) -> Any | | onswipeddown | (SwipeEvent) -> Any | | onswipedstart | (SwipeEvent) -> Any | | onswiping | (SwipeEvent) -> Any | | ontap | () -> Any | | ontouchstartormousedown | () -> Any | | ontouchendormouse_up | () -> Any |
SwipeEvent is the following:
```python class SwipeEvent(TypedDict): """A swipe event."""
# direction of swipe
dir: Literal["Left", "Right", "Up", "Down"]
# initial swipe [x,y]
initial: Tuple[float, float]
# true for the first event of a tracked swipe
first: bool
# x offset (current.x - initial.x)
delta_x: float
# y offset (current.y - initial.y)
delta_y: float
# absolute delta_x
abs_x: float
# absolute delta_y
abs_y: float
# √(absX^2 + absY^2) / time - "absolute velocity" (speed)
velocity: float
# [ deltaX/time, deltaY/time] - velocity per axis
vxvy: Tuple[float, float]
```
Owner
- Name: Khaleel Al-Adhami
- Login: adhami3310
- Kind: user
- Location: Cambridge, MA
- Company: MIT
- Website: https://adhami.me
- Repositories: 26
- Profile: https://github.com/adhami3310
support my work on https://opencollective.com/beyond-expiry
GitHub Events
Total
- Release event: 2
- Watch event: 1
- Push event: 6
- Create event: 3
Last Year
- Release event: 2
- Watch event: 1
- Push event: 6
- Create event: 3
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 114 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
pypi.org: reflex-swipe
Provides swipe gestures detections for reflex apps.
- Documentation: https://reflex-swipe.readthedocs.io/
- License: MIT
-
Latest release: 1.1.2
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- python ^3.10
- reflex ^0.6.5
- actions/checkout v4 composite
- astral-sh/setup-uv v6 composite
- alembic 1.15.2
- annotated-types 0.7.0
- anyio 4.9.0
- async-timeout 5.0.1
- bidict 0.23.1
- certifi 2025.4.26
- click 8.2.0
- colorama 0.4.6
- exceptiongroup 1.3.0
- fastapi 0.115.12
- granian 2.2.6
- greenlet 3.2.2
- h11 0.16.0
- httpcore 1.0.9
- httpx 0.28.1
- idna 3.10
- jinja2 3.1.6
- mako 1.3.10
- markdown-it-py 3.0.0
- markupsafe 3.0.2
- mdurl 0.1.2
- packaging 25.0
- platformdirs 4.3.8
- psutil 7.0.0
- pydantic 2.11.4
- pydantic-core 2.33.2
- pygments 2.19.1
- pyjwt 2.9.0
- python-engineio 4.12.1
- python-multipart 0.0.20
- python-socketio 5.13.0
- pyyaml 6.0.2
- redis 5.3.0
- reflex 0.7.11
- reflex-hosting-cli 0.1.49
- reflex-swipe 1.1.1
- rich 14.0.0
- simple-websocket 1.1.0
- sniffio 1.3.1
- sqlalchemy 2.0.41
- sqlmodel 0.0.24
- starlette 0.46.2
- tabulate 0.9.0
- typing-extensions 4.13.2
- typing-inspection 0.4.0
- watchfiles 1.0.5
- wrapt 1.17.2
- wsproto 1.2.0