diff --git a/src/jsMain/kotlin/de/kif/frontend/views/calendar/Calendar.kt b/src/jsMain/kotlin/de/kif/frontend/views/calendar/Calendar.kt index ec63b6b..a0dcbaa 100644 --- a/src/jsMain/kotlin/de/kif/frontend/views/calendar/Calendar.kt +++ b/src/jsMain/kotlin/de/kif/frontend/views/calendar/Calendar.kt @@ -7,6 +7,7 @@ import de.westermann.kwebview.View import de.westermann.kwebview.createHtmlView import de.westermann.kwebview.iterator import org.w3c.dom.* +import org.w3c.dom.events.EventListener import kotlin.browser.document import kotlin.browser.window import kotlin.js.Date @@ -153,6 +154,14 @@ class Calendar(calendar: HTMLElement) : View(calendar) { it.preventDefault() } + onMouseDown { + autoScroll = false + } + + html.addEventListener("touchstart", EventListener { + autoScroll = false + }) + RoomRepository.onCreate { val cell = createHtmlView() cell.dataset["room"] = it.toString()