X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/921131f99949960f448b2cfbb0ad78edc8d4f24a..refs/pull/3333/head:/resources/js/wysiwyg/scrolling.js diff --git a/resources/js/wysiwyg/scrolling.js b/resources/js/wysiwyg/scrolling.js index 360d18381..f14ef4c64 100644 --- a/resources/js/wysiwyg/scrolling.js +++ b/resources/js/wysiwyg/scrolling.js @@ -11,21 +11,6 @@ export function scrollToQueryString(editor) { } } -/** - * Override for touch events to allow scrolling on mobile devices. - * TODO - Check if still needed or if needs editing. - * @param {Editor} editor - */ -export function fixScrollForMobile(editor) { - const container = editor.getContainer(); - const toolbarButtons = container.querySelectorAll('.mce-btn'); - for (let button of toolbarButtons) { - button.addEventListener('touchstart', event => { - event.stopPropagation(); - }); - } -} - /** * @param {Editor} editor * @param {String} scrollId