We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2986b64 commit a9c7313Copy full SHA for a9c7313
src/widgets/ot_swipe.eliomi
@@ -1,9 +1,11 @@
1
[%%shared.start]
2
3
(**
4
- [bind ~compute_final_pos elt] makes [elt] swipable on touch screens.
+ [bind ~compute_final_pos elt] makes [elt] left-right
5
+ swipable on touch screens.
6
[compute_final_pos] is a function that will compute the final position
7
of the element w.r.t. the position where it has been released (in pixels).
8
+ Use [(fun _ p -> p)] if you want it to stay where it was released.
9
10
Use [?min] and [?max] if you want to limit the move.
11
If outside range, events will be propagated to parent
0 commit comments