Fix haptic feedback

This commit is contained in:
Skylar Ittner 2021-05-08 17:36:34 -06:00
parent f5bf847dda
commit 9b52bcec7d
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ function handleBackButton() {
} }
} }
$(document).on("touchdown", ".hapticbtn,.input-clear-button,.button,.link", function () { $(document).on("mousedown", ".hapticbtn,.input-clear-button,.button,.link", function () {
doHapticFeedback(); doHapticFeedback();
}); });

View File

@ -144,9 +144,9 @@ function initCordova() {
// Make sure the status bar color is set properly // Make sure the status bar color is set properly
applyColorTheme(); applyColorTheme();
if (typeof device != "undefined" && device.platform == "android") { if (typeof device != "undefined" && device.platform == "Android") {
doHapticFeedback = function () { doHapticFeedback = function () {
window.plugins.deviceFeedback.haptic(window.plugins.deviceFeedback.VIRTUAL_KEY); window.plugins.deviceFeedback.acoustic();
} }
} }