You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,11 @@ It returns `true` if a push button was released (switched towards the off positi
60
60
61
61
### `longPress()`
62
62
63
-
It returns `true` if a push button is pressed longer than `300ms` (by default). Note that a `longPress()` always will be preceded by `pushed()` from the first push.
63
+
It returns `true` if a push button was pressed longer than `300ms` (by default). Note that a `longPress()` always will be preceded by `pushed()` from the first push.
64
+
65
+
### `isLongPressed()`
66
+
67
+
It returns `true` if the conditions for `longPress()` were true and the push button is still being held down.
0 commit comments