Skip to content

Commit 6baaeb4

Browse files
committed
Update README.md
1 parent 5ec47e4 commit 6baaeb4

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ npm install --save react-repeatable
3434
// Callback fired when the mouseup, touchcancel, or touchend event is triggered.
3535
}}
3636
>
37-
<button
38-
type="button"
39-
onClick={(event) => {
40-
// The click action will be triggered multiple times.
41-
}}
42-
>
37+
<button type="button">
4338
Press Me
4439
</button>
4540
</Repeatable>
@@ -55,9 +50,9 @@ repeatDelay | Number | 500 | The time (in milliseconds) to wait before the first
5550
repeatInterval | Number | 32 | The time interval (in milliseconds) on how often to trigger a hold action.
5651
repeatCount | Number | | The number of times the hold action will take place.
5752
onPress | Function(event) | | Callback fired when the mousedown or touchstart event is triggered.
58-
onHoldStart | Function() | | Callback fired once when the hold action is started.
53+
onHoldStart | Function() | | Callback fired once before the first hold action.
5954
onHold | Function() | | Callback fired mutiple times while holding down.
60-
onHoldEnd | Function() | | Callback fired once when the hold action has finished.
55+
onHoldEnd | Function() | | Callback fired once after the last hold action.
6156
onRelease | Function(event) | | Callback fired when the mouseup, touchcancel, or touchend event is triggered.
6257

6358
## License

0 commit comments

Comments
 (0)