added overflow for tasks and overflow shadow to all overflows. also
minimum drag distance is now 10px
This commit is contained in:
@@ -62,6 +62,13 @@ function mouseup(_: MouseEvent) {
|
||||
|
||||
const timeFrom = Math.min(endY.value, startY.value) / column.value.offsetHeight
|
||||
const timeTo = Math.max(endY.value, startY.value) / column.value.offsetHeight
|
||||
|
||||
if (timeTo * column.value.offsetHeight - timeFrom * column.value.offsetHeight <= 10) {
|
||||
startY.value = 0
|
||||
endY.value = 0
|
||||
return
|
||||
}
|
||||
|
||||
emit('quick-create', props.day, {
|
||||
from: timeFrom,
|
||||
to: timeTo
|
||||
|
||||
Reference in New Issue
Block a user