Skip to content

Instantly share code, notes, and snippets.

@ijse
Created October 26, 2015 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijse/b9839dc7081fcfd271bb to your computer and use it in GitHub Desktop.
Save ijse/b9839dc7081fcfd271bb to your computer and use it in GitHub Desktop.
var isMobile = false;
$editor.on('click', '.comment-bar', function(event) {
if(isMobile) return null;
handleBarClick(event);
});
$editor.on('touchstart', '.comment-bar', function(event) {
isMobile = true;
handleBarClick(event);
});
$editor.on('touchend', '.comment-bar', function(event) {
event.preventDefault();
event.stopPropagation();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment