Open Bug 1684458 Opened 4 years ago Updated 4 years ago

Pinch-zoom creates unnecessary scrollbars when viewing images

Categories

(Core :: Layout: Images, Video, and HTML Frames, enhancement)

Firefox 84
enhancement

Tracking

()

People

(Reporter: benjamin.lerner, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

View any small image by opening it in a new tab, and pinching to zoom.

Actual results:

Firefox zooms the image and the background texture, and immediately creates scrollbars to move around the page --- even though the image itself is fully visible within the screen, no scrolling needed.

Expected results:

It seems odd to me that this scenario would trigger scrollbars. I can kinda understand it when tiny HTML pages (e.g. <body>hi</body>) also cause scrollbars, because in theory the background of the page is something the user might consider worth zooming also. But the image-viewing page is entirely created by Firefox, and a user is clearly trying to view the image, not Firefox's background texture.

Setting a component for this enhancement in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Scrolling and Overflow
Ever confirmed: true
Product: Firefox → Core

This would likely require changes to the ImageDocument code, which I'm not sure what component it is but I think Layout: Images, etc is it. Not sure how best to fix this. We could maybe have the ImageDocument respond to the pinch gestures and transform scale the image.

Component: Layout: Scrolling and Overflow → Layout: Images, Video, and HTML Frames
You need to log in before you can comment on or make changes to this bug.