diff options
Diffstat (limited to 'app/src/main/assets/js/click_debugger.coffee')
-rw-r--r-- | app/src/main/assets/js/click_debugger.coffee | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/src/main/assets/js/click_debugger.coffee b/app/src/main/assets/js/click_debugger.coffee new file mode 100644 index 00000000..057bb207 --- /dev/null +++ b/app/src/main/assets/js/click_debugger.coffee @@ -0,0 +1,14 @@ +# for desktop only + +_frostAContext = (e) -> + + ### + # Commonality; check for valid target + ### + element = e.target or e.currentTarget or e.srcElement + if !element + return + console.log "Clicked element: #{element.tagName} #{element.className}" + return + +document.addEventListener 'contextmenu', _frostAContext, true |