Open jkiefn1 opened 2 years ago
@jkiefn1 Could you possibly add a video interacting with the codepen & illustrate what is going wrong on your device?
Not sure how to interact with the minimal codepen from mobile devices.
However, put simply, if you were to deploy the app above, "scrollZoom=False" works as intended on desktop, but does not on mobile. You still scroll on zoom on mobile devices.
Doesn't scroll work on the whole page? Or as you say it is only the map part? Please clarify or alternatively post a video of the deployed app as you mentioned.
I'm referring to the map, as the "scrollZoom" functionality is only applied to the map in the application. Attached is a video of the issue on mobile. You can still scrollZoom on mobile despite being set to "false".
@jkiefn1 Thank you for posting the video. @archmoj , do you think it's a bug?
@jkiefn1 Thanks for the video. That looks like a OS+Browser related bug; whereas I was unable to replicate it. Would you please let us know which OS and browser you are using?
@archmoj are you using a computer or mobile phone emulator or actually a mobile phone? The issue only persists on mobile devices.
On my laptop w/ Windows 10 x Google Chrome - No issue On my laptop w/ Mac Big Sur x Safari - No issue On my laptop w/ Mac Big Sur x Google Chrome - No issue On my laptop w/ Mac Big Sur x Safari mobile phone emulator - No issue On my iPhone 12 iOS 15.6.1 - Issue. Can still scroll-zoom even though scrollZoom = False.
Confirmed bug on iPad and iPhone with either Safari or Chrome browsers.
Any update here @archmoj or @Coding-with-Adam ?
When viewing a dash app, scrollZoom=False works as intended for desktop devices, but does not work for mobile devices. This has been confirmed as a bug.
Plotly Community question
Minimal codepen
Python code below: