Skip to content

Instantly share code, notes, and snippets.

@stefek99
Created July 15, 2013 15:55
Show Gist options
  • Save stefek99/6001075 to your computer and use it in GitHub Desktop.
Save stefek99/6001075 to your computer and use it in GitHub Desktop.
Debugging mouse events is tricky as sometimes switching context to developer tools closes the popup.
if(e != null && e.type.indexOf("mouse") == -1)
{
counter++;
}
if(counter == 4)
{
debugger;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment