fix: performance and style

This commit is contained in:
fraujulian committed 2026-05-14 15:57:12 +02:00
1 parent d8d1528fa9
commit 24862a33d0
4 files changed
+95 -17

No files matched your search

+2 -2
View File
@@ -442,7 +442,7 @@ describe('HomeComponent', (): void => {
expect(comp.shouldEnableScrollEffects()).toBeTrue();
});
it('should disable scroll effects on coarse touch pointers', (): void => {
it('should keep scroll effects enabled on coarse touch pointers when motion is allowed', (): void => {
spyOn(window, 'matchMedia').and.callFake(
(query: string): MediaQueryList =>
({
@@ -450,7 +450,7 @@ describe('HomeComponent', (): void => {
}) as MediaQueryList,
);
expect(comp.shouldEnableScrollEffects()).toBeFalse();
expect(comp.shouldEnableScrollEffects()).toBeTrue();
});
it('should disable scroll effects when reduced motion is requested', (): void => {