fluidd-core / fluidd

Fluidd, the klipper UI.
https://docs.fluidd.xyz
GNU General Public License v3.0
1.39k stars 425 forks source link

Slider input lockout not present on all tablets #1044

Open kieraneglin opened 1 year ago

kieraneglin commented 1 year ago

Fluidd Version

Latest develop

Browser

Safari, Other (Please tell us below)

Device

Mobile device (Phone, Tablet or similar)

Operating System

Android, iOS

What happened

Slider input locks aren't present on tablets that are larger than the Vuetify mobile breakpoint

What did you expect to happen

Slider input locks should be present on tablets. Possible solutions:

How to reproduce

Open Fluidd UI on a normal tablet (an iPad, for example)

Additional information

No response

kieraneglin commented 1 year ago

@pedrolamas if there is consensus on how to handle this, I can open a pull request with a fix!

pedrolamas commented 1 year ago

I don't use tablets, so I never came across this... having said that, we do have a better is-mobile method that checks for browser agent: https://github.com/fluidd-core/fluidd/blob/develop/src/util/is-mobile.ts

At the moment, we only use it to ensure we don't show Monaco editor on mobile devices as it is not supported and most likely wouldn't work.

My guess is that this method would be a better fit for purpose than using the existing Vuetify check!