2 Commits

Author SHA1 Message Date
0f240596cc 1.15.9
All checks were successful
Deploy to Production / deploy (push) Successful in 24s
2026-02-21 23:24:44 +00:00
6fc3e1c057 Enhance vibration pattern on game win with error handling 2026-02-21 23:24:40 +00:00
3 changed files with 11 additions and 7 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "vue-nonograms-solid",
"version": "1.15.8",
"version": "1.15.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vue-nonograms-solid",
"version": "1.15.8",
"version": "1.15.9",
"dependencies": {
"@capacitor/android": "^8.1.0",
"@capacitor/cli": "^8.1.0",

View File

@@ -1,6 +1,6 @@
{
"name": "vue-nonograms-solid",
"version": "1.15.8",
"version": "1.15.9",
"homepage": "https://nonograms.7u.pl/",
"type": "module",
"scripts": {

View File

@@ -36,10 +36,14 @@ const handleKeyDown = (e) => {
const triggerVibration = () => {
if (!('vibrate' in navigator)) return;
try {
const isCoarse = window.matchMedia?.('(pointer: coarse)')?.matches;
const isTouch = navigator.maxTouchPoints && navigator.maxTouchPoints > 0;
if (isCoarse || isTouch) {
navigator.vibrate([80, 40, 120, 40, 180]);
navigator.vibrate([200, 100, 200, 100, 200]);
}
} catch (e) {
console.error('Vibration failed:', e);
}
};