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:
@ -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
|
||||
|
Reference in New Issue
Block a user