Skip to content

Commit a9c7313

Browse files
committed
Ot_swipe: improve doc
1 parent 2986b64 commit a9c7313

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/widgets/ot_swipe.eliomi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[%%shared.start]
22

33
(**
4-
[bind ~compute_final_pos elt] makes [elt] swipable on touch screens.
4+
[bind ~compute_final_pos elt] makes [elt] left-right
5+
swipable on touch screens.
56
[compute_final_pos] is a function that will compute the final position
67
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.
79
810
Use [?min] and [?max] if you want to limit the move.
911
If outside range, events will be propagated to parent

0 commit comments

Comments
 (0)