useTimeline: use store to provide partial editing

This commit is contained in:
thislight 2024-08-06 20:27:30 +08:00
parent 9486ac34ea
commit fc8d489977
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
3 changed files with 65 additions and 30 deletions

6
src/platform/hardware.ts Normal file
View file

@ -0,0 +1,6 @@
export function vibrate(pattern: number | number[]) {
if (typeof navigator.vibrate !== "undefined") {
return navigator.vibrate(pattern);
}
return false;
}