Преглед изворни кода

Better fix for the vibrate on iOS issue

This keeps the vibrate on Android devices
tags/v0.8.6^2
Vildravn пре 3 година
родитељ
комит
304362b831
2 измењених фајлова са 6 додато и 0 уклоњено
  1. +4
    -0
      src/client/js/misc/helpers.js
  2. +2
    -0
      src/client/ui/templates/messages/mobile.js

+ 4
- 0
src/client/js/misc/helpers.js Прегледај датотеку

@@ -133,5 +133,9 @@ define([], function () {
window.scale = isMobile ? 32 : 40;
window.scaleMult = isMobile ? 4 : 5;

if (!window.navigator.vibrate) {
window.navigator.vibrate = () => {};
}

return window._;
});

+ 2
- 0
src/client/ui/templates/messages/mobile.js Прегледај датотеку

@@ -64,6 +64,8 @@ define([
},

clickKey: function (key) {
window.navigator.vibrate(20);

let elInput = this.find('input');

const handler = {


Loading…
Откажи
Сачувај