Skip to content

Commit

Permalink
Test de vibration sans succès
Browse files Browse the repository at this point in the history
  • Loading branch information
laem committed Sep 12, 2024
1 parent c94c752 commit 3408ce3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/effects/useDrawRightClickMarker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export default function useDrawRightClickMarker(map, geocodedClickedPoint) {
.setLngLat([lon, lat])
.addTo(map)

// Apple Maps has a nice haptic vibration feedback.
// https://il.ly/tech/vibrate-mobile-phone-web-vibration-api#vibration-api-browser-support
// I don't think this is much supported. Test Android Firefox, Bromite,
// Lineageos navigator, iOS firefox, iOS safari : no one works.
navigator.vibrate(200)

return () => {
marker.remove()
}
Expand Down

0 comments on commit 3408ce3

Please sign in to comment.