From dcc1dc784dc86c5007f302a607f84289c02020ad Mon Sep 17 00:00:00 2001 From: sotech117 Date: Fri, 19 Jan 2024 13:19:41 -0500 Subject: fix bug with handlers --- .idea/.gitignore | 5 +++++ .idea/ABtesting.iml | 12 ++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ record.js | 3 ++- 5 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/ABtesting.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/ABtesting.iml b/.idea/ABtesting.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/.idea/ABtesting.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f648f9e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/record.js b/record.js index 8666493..987bbab 100644 --- a/record.js +++ b/record.js @@ -83,10 +83,11 @@ const fail = event => { did_misclick = true; } +// section for adding/removing handlers const cleanupHandlers = () => { window.removeEventListener('load', recordAction); window.removeEventListener('click', recordAction); - window.addEventListener('pointermove', recordAction); + window.removeEventListener('pointermove', recordAction); window.removeEventListener('beforeunload', recordAction); } -- cgit v1.2.3-70-g09d2