aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click_debugger.coffee
blob: 057bb2072f80eb694cd8b8e633f54b7c70e780ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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