Open theres-waldo opened 4 years ago
Awesome, congrats! I'll try to give it a look next week if I can find some time.
Any reason why the visual viewport API is limited to Android? IIRC desktop (used to?) not support pinch-zoom in the way mobile does. If that's the case, it's trivial to implement there as well. It doesn't provide any new information to pages but it does allow authors to write more uniform code.
Any reason why the visual viewport API is limited to Android? IIRC desktop (used to?) not support pinch-zoom in the way mobile does.
We are working on enabling pinch-zoom support on desktop, and plan to enable the Visual Viewport API as part of that support.
In recent Firefox releases we have implemented additional improvements to viewport-related behaviour:
innerWidth
/innerHeight
to reflect the dimensions of the fixed viewport.With these changes, I believe we are now in alignment with Chrome on all viewport-related behaviours described in this explainer doc. Please let me know if I overlooked anything!