epam / ketcher

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

Cursor position is incorrect when editing sequence in Macro mode #5725

Closed Zhirnoff closed 3 weeks ago

Zhirnoff commented 1 month ago

Steps to Reproduce

  1. Open Ketcher and switch to Macro mode.
  2. Add a sequence of monomers to the canvas.
  3. Right-click on a monomer ( or double click ) in the sequence (e.g., the 8th monomer) and start editing the sequence.

Actual behavior The cursor appears to the left of the monomer that was clicked, which is inconsistent with the expected editing behavior. This can lead to confusion when modifying the sequence. 2024-10-11_13h36_17

Expected behavior The cursor should appear to the right of the monomer on which the right-click ( double click ) was made, allowing for editing after the selected monomer 2024-10-11_13h36_31

Desktop:

Ketcher version [Version 2.26.0-rc.1] Indigo version [Version 1.25.0-rc.1] Bug related to task: https://github.com/epam/ketcher/issues/4888

187898331

Zhirnoff commented 3 weeks ago

Tested. Bug fixed.

https://github.com/user-attachments/assets/21ff4b62-5007-4129-8495-9db82fa65326

Desktop:

Ketcher version [Version 2.26.0-rc.4] Indigo version [Version 1.25.0-rc.2]