File tree 1 file changed +8
-8
lines changed
projects/angular-calendar/src/modules/common
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ export const validateEvents = (events: CalendarEvent[]) => {
17
17
18
18
export function isInside ( outer : ClientRect , inner : ClientRect ) : boolean {
19
19
return (
20
- Math . ceil ( outer . left ) <= Math . ceil ( inner . left ) &&
21
- Math . ceil ( inner . left ) <= Math . ceil ( outer . right ) &&
22
- Math . ceil ( outer . left ) <= Math . ceil ( inner . right ) &&
23
- Math . ceil ( inner . right ) <= Math . ceil ( outer . right ) &&
24
- Math . ceil ( outer . top ) <= Math . ceil ( inner . top ) &&
25
- Math . ceil ( inner . top ) <= Math . ceil ( outer . bottom ) &&
26
- Math . ceil ( outer . top ) <= Math . ceil ( inner . bottom ) &&
27
- Math . ceil ( inner . bottom ) <= Math . ceil ( outer . bottom )
20
+ Math . floor ( outer . left ) <= Math . ceil ( inner . left ) &&
21
+ Math . floor ( inner . left ) <= Math . ceil ( outer . right ) &&
22
+ Math . floor ( outer . left ) <= Math . ceil ( inner . right ) &&
23
+ Math . floor ( inner . right ) <= Math . ceil ( outer . right ) &&
24
+ Math . floor ( outer . top ) <= Math . ceil ( inner . top ) &&
25
+ Math . floor ( inner . top ) <= Math . ceil ( outer . bottom ) &&
26
+ Math . floor ( outer . top ) <= Math . ceil ( inner . bottom ) &&
27
+ Math . floor ( inner . bottom ) <= Math . ceil ( outer . bottom )
28
28
) ;
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments