From b6f2b9168b3bfb444a483e68f25d03310f327ab6 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Thu, 14 Jun 2018 09:58:14 +0200 Subject: [PATCH] Added on touchmove to contact.js. --- static/js/contact.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/contact.js b/static/js/contact.js index 60dcc5e..bfaced7 100644 --- a/static/js/contact.js +++ b/static/js/contact.js @@ -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)) {