]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/scrolling.js
Fixed tests from streaming changes
[bookstack] / resources / js / wysiwyg / scrolling.js
index 360d1838149fb731c176b72f97b2a9aec4cabc2d..f14ef4c643abe778c24e96ca0974aa8e4265bfb0 100644 (file)
@@ -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