fix: performance and style
This commit is contained in:
1 parent
d8d1528fa9
commit
24862a33d0
4 files changed
+95
-17
No files matched your search
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user