Skip to content

Instantly share code, notes, and snippets.

@ijse
Created October 26, 2015 07:51
Show Gist options
  • 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