From da279de71b64e5c66e25a031774961a772f93d50 Mon Sep 17 00:00:00 2001 From: Maurice Williams Date: Sun, 3 Aug 2014 01:36:46 -0400 Subject: [PATCH] Replacing "touch start" with "tap" event, provided by hammer.js fixes #3502 --- core/client/utils/codemirror-mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/utils/codemirror-mobile.js b/core/client/utils/codemirror-mobile.js index 2b21caee7d..565729bd50 100644 --- a/core/client/utils/codemirror-mobile.js +++ b/core/client/utils/codemirror-mobile.js @@ -29,7 +29,7 @@ init = function init() { $('body').addClass('touch-editor'); // make editor tabs touch-to-toggle in portrait mode - $('.floatingheader').on('touchstart', function () { + $('.floatingheader').on('tap', function () { $('.entry-markdown').toggleClass('active'); $('.entry-preview').toggleClass('active'); });