Fix haptic feedback

master
Skylar Ittner 3 years ago
parent f5bf847dda
commit 9b52bcec7d

@ -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();
}); });

@ -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();
} }
} }

Loading…
Cancel
Save