Bugfixes calendar auto scroll
This commit is contained in:
parent
d53b6f061d
commit
5cf089dd72
|
@ -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<HTMLElement>()
|
||||
cell.dataset["room"] = it.toString()
|
||||
|
|
Loading…
Reference in a new issue