[Bug] Image viewer closes unexpectedly when dragging/scrolling large images

Open 💬 1 comment Opened Aug 21, 2026 by NI-MingCheng
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.730.61639

What subscription do you have?

pro 5x

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

When viewing a large image in Codex Image Viewer, dragging the image or interacting with the bottom area of the viewer may unexpectedly close the image preview.

The behavior looks like a mouse hit-test issue: the click is interpreted as pressing the close button instead of dragging/panning the image.

The issue mainly happens with large panoramic images that require scrolling or dragging.

What steps can reproduce the bug?

  1. Ask Codex to display a large PNG image.
  2. Click "Viewed an image" to open the image viewer.
  3. Use a large aspect-ratio image that requires scrolling/panning.
  4. Try to drag the image from the bottom area of the viewer.
  5. The image viewer closes instead of moving/panning the image.

What is the expected behavior?

Dragging should move/pan the image, and scrolling should zoom or navigate the image.

The image viewer should only close when clicking the close button explicitly.

Additional information

Additional observations:

  • The issue is easier to reproduce with very wide/tall images.
  • Right-clicking the image only shows:
  • Copy Image
  • Select All

There is no option to open the image externally or reveal the file location.

The problem appears to be related to mouse event handling or hit-test coordinates between the image canvas and overlay controls.

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 7 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #39037

Powered by Codex Action