epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
453 stars 165 forks source link

Switching from Sequence mode to Snake mode and back shifts visible area of canvas beyond visible frame. Forever. #5074

Closed AlexeyGirin closed 1 month ago

AlexeyGirin commented 1 month ago

Steps to Reproduce

  1. Go to Macromolecules - Flex mode <---Important!
  2. Load from file: Switching from Sequence mode to Snake mode and back shifts visible area of canvas beyond visible frame.zip image
  3. Switch view to Sequence mode
  4. Switch back to Snake mode

Actual behavior Canvas forever shifted to the left and down partially beyond visisbility frame image

Expected behavior No shifting image

Environment details:

Issue found while testing - https://github.com/epam/ketcher/issues/3532

Zhirnoff commented 1 month ago

Maybe this will help developers understand the cause of bug: when I pressed zoom 100%, structure was centered.

https://github.com/epam/ketcher/assets/62464241/4185e12a-2f9c-43fe-9380-5d54b3eaccfb

AlexeyGirin commented 1 month ago

Verified. image