mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
Merge pull request #3579 from morficus/issue-3502
Replacing "touchstart" with "tap" event, provided by hammer.js
This commit is contained in:
commit
6475f92411
@ -29,7 +29,7 @@ init = function init() {
|
|||||||
$('body').addClass('touch-editor');
|
$('body').addClass('touch-editor');
|
||||||
|
|
||||||
// make editor tabs touch-to-toggle in portrait mode
|
// make editor tabs touch-to-toggle in portrait mode
|
||||||
$('.floatingheader').on('touchstart', function () {
|
$('.floatingheader').on('tap', function () {
|
||||||
$('.entry-markdown').toggleClass('active');
|
$('.entry-markdown').toggleClass('active');
|
||||||
$('.entry-preview').toggleClass('active');
|
$('.entry-preview').toggleClass('active');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user