Skip to content

[Bug] Pan image should stop moving on the viewport edge #5945

@hongxiao-gif

Description

@hongxiao-gif

Describe the Bug

Using the Pan tool to move the image, the image does not stop moving once it gets to the viewport edge.
Please see attached video:

Pan.webm

Steps to Reproduce

  1. Open an image on Basic viewer or Segmentation
  2. Click on the Pan tool to move the image around
  3. When move the image to viewport edge

The current behavior

Actual result: The image does not stop and disappear from the viewport

The expected behavior

Expected result: image stops moving when it gets to the viewport edge.

System Information

C:\Users\xhail>npx envinfo --system --binaries --browsers

System:
OS: Windows 11 10.0.26200
CPU: (8) x64 Intel(R) Core(TM) Ultra 5 226V
Memory: 4.11 GB / 15.67 GB
Binaries:
Node: 24.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 11.8.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 10.33.0 - C:\Users\xhail\AppData\Roaming\npm\pnpm.CMD
bun: 1.3.9 - C:\Users\xhail.bun\bin\bun.EXE
Browsers:
Chrome: 146.0.7680.178
Edge: Chromium (146.0.3856.59)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions