File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/vuetify/src/components/VCalendar/composables Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ export function useCalendarWithIntervals (props: CalendarWithIntervalsProps) {
211211
212212 function timeToY (
213213 time : VTime | CalendarTimestamp ,
214- targetDateOrClamp : CalendarTimestamp | boolean = true
214+ targetDateOrClamp : CalendarTimestamp | boolean = false
215215 ) : number | false {
216216 const clamp = targetDateOrClamp !== false
217217 const targetDate = typeof targetDateOrClamp !== 'boolean' ? targetDateOrClamp : undefined
@@ -224,10 +224,15 @@ export function useCalendarWithIntervals (props: CalendarWithIntervalsProps) {
224224 if ( clamp ) {
225225 if ( y < 0 ) {
226226 y = 0
227- }
228- if ( y > bodyHeight . value ) {
227+ } else if ( y > bodyHeight . value ) {
229228 y = bodyHeight . value
230229 }
230+ } else {
231+ if ( y < 0 ) {
232+ y = y + bodyHeight . value
233+ } else if ( y > bodyHeight . value ) {
234+ y = y - bodyHeight . value
235+ }
231236 }
232237
233238 return y
You can’t perform that action at this time.
0 commit comments