Fix vibration on iphone

This commit is contained in:
schmelczerandras 2020-10-28 16:34:11 +01:00
parent 7162dc69b9
commit 45b6588701
4 changed files with 16 additions and 10 deletions

View file

@ -1,4 +1,5 @@
import { SoundHandler, Sounds } from './sound-handler';
import { VibrationHandler } from './vibration-handler';
interface Options {
vibrationEnabled: boolean;
@ -47,7 +48,7 @@ export abstract class OptionsHandler {
}
if (this.checked && k === 'vibrationEnabled') {
navigator.vibrate(100);
VibrationHandler.vibrate(100);
}
SoundHandler.play(Sounds.click);