fix(mobile): prevent back on iOS

This commit is contained in:
Elian Doran 2025-01-04 00:22:16 +02:00
parent 73828a195b
commit eb97c1e9e2
No known key found for this signature in database

View File

@ -23,10 +23,8 @@ export default class SidebarContainer extends FlexContainer {
});
});
document.addEventListener("touchstart", (e) => this.#onDragStart(e), {
passive: false
});
document.addEventListener("touchmove", (e) => this.#onDragMove(e));
document.addEventListener("touchstart", (e) => this.#onDragStart(e));
document.addEventListener("touchmove", (e) => this.#onDragMove(e), { passive: false });
document.addEventListener("touchend", (e) => this.#onDragEnd(e));
}