GoogleChrome / GoogleChrome/lighthouse

Score not recalculated correctly when switching device type in Lighthouse Score Calculator UI

Open
#16,609 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

### FAQ

- [x] Yes, my issue is not about [variability](https://github.com/GoogleChrome/lighthouse/blob/main/docs/variability.md) or [throttling](https://github.com/GoogleChrome/lighthouse/blob/main/docs/throttling.md).
- [x] Yes, my issue is not about a specific accessibility audit (file with [axe-core](https://github.com/dequelabs/axe-core) instead).
- [x] Yes, my issue is not answered by [other FAQs](https://github.com/GoogleChrome/lighthouse#faq).

### URL

https://googlechrome.github.io/lighthouse/scorecalc/

### What happened?

1. Go to the https://googlechrome.github.io/lighthouse/scorecalc/ select Device type to mobile and make the values to absolute max so that the score comes out to be the least

Image

2. Now Switch the device type to desktop and see that the metric score becomes zero

Image
3. Now try Increasing the metric score and notice that previously it was at 0 but now its only going 1 to the least

Image

Image
Now notice that the least I'm now allowed is to go only 1

Image
And this is happening with almost all of the selections

### What did you expect?

When switching Device type from mobile to desktop It should switch back to the default minimum limit according to the desktop's limitation and make sure it doesn't go below the limit

### What have you tried?

Currently None

### How were you running Lighthouse?

Other, Chrome DevTools

### Lighthouse Version

Latest

### Chrome Version

138.0.7204.169

### Node Version

_No response_

### OS

Windows

### Relevant log output

```sh

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.