diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-01-19 13:19:41 -0500 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-01-19 13:19:41 -0500 |
commit | dcc1dc784dc86c5007f302a607f84289c02020ad (patch) | |
tree | 5aaa10579a69e0b5a236bbe152de64bc4f371510 /record.js | |
parent | 11047bb715c3dedf3062091236b61677a751f2bc (diff) |
fix bug with handlers
Diffstat (limited to 'record.js')
-rw-r--r-- | record.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |