Added on touchmove to contact.js.

This commit is contained in:
Fredrik Jonsson 2018-06-14 09:58:14 +02:00
commit b6f2b9168b

View file

@ -25,6 +25,13 @@
$contact_button.attr('disabled', false);
});
// Wait for a touch move event, indicating that they are human.
$('body').on('touchmove', function () {
// Unlock the form.
$contact_form.attr('action', contact_action);
$contact_button.attr('disabled', false);
});
// A tab or enter key pressed can also indicate they are human.
$('body').keydown(function (e) {
if ((e.keyCode === 9) || (e.keyCode === 13)) {