This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to set firefox to center a full-size image where I click

  • 5 svar
  • 1 har dette problemet
  • 4 views
  • Siste svar av cor-el

more options

Until recently, if I opened an image in a Firefox tab, and then clicked on it to zoom in to actual size, Firefox would center the image where I clicked. That is, it would position the image such that the point I clicked on would be in the center of the screen, and I could then scroll up-down or left-right from there. At some point, this changed. Now, when I click to view a full-size image, it positions it so that I'm zoomed in on the upper-left corner of the image.

Is this some default behavior that changed in a recent update? Is there a setting I could set to make it go back to the way it used to be?

Until recently, if I opened an image in a Firefox tab, and then clicked on it to zoom in to actual size, Firefox would center the image where I clicked. That is, it would position the image such that the point I clicked on would be in the center of the screen, and I could then scroll up-down or left-right from there. At some point, this changed. Now, when I click to view a full-size image, it positions it so that I'm zoomed in on the upper-left corner of the image. Is this some default behavior that changed in a recent update? Is there a setting I could set to make it go back to the way it used to be?

All Replies (5)

more options
  • Type about:config into the address bar,
  • Type browser.enable_automatic_image_resizing in the Filter bar and hit enter,
  • double click it and the value should change to false.
more options

For me it centers where I click in the current Firefox release, so try to click in the center position to see if that works. If I click top left then the image center in that position.

This means that you can center the image with a double-click in any position.

Endret av cor-el

more options

FFus3r said

  • Type about:config into the address bar,
  • Type browser.enable_automatic_image_resizing in the Filter bar and hit enter,
  • double click it and the value should change to false.

That had no effect.

more options

On Windows 7, Firefox 62 seems to center the clicked point within the tab's content area as best it can, considering where the point is in the image and its dimensions. I don't know whether add-ons or custom style rules could affect it.

more options

If the image isn't centered in the position you click then an extension might be interfering.

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration is is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Appearance
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window