1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Removed unused scroll patch after testing

- Tested on android and ios
- Also checked on translations and removed todo.
This commit is contained in:
Dan Brown
2022-02-08 09:42:18 +00:00
parent e0d9380055
commit 572d8b3700
3 changed files with 1 additions and 18 deletions

View 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