epam / ketcher

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

Click & drag a Functional Group on FG, Salts and Solvents, FG connected with Atom makes replace #2278

Open Zhirnoff opened 1 year ago

Zhirnoff commented 1 year ago

Steps to Reproduce

  1. Open Ketcher
  2. Add any Functional Group, Salts and Solvent, Functional Group connected with Atom or FG
  3. Select any FG and click & drag on each added element

Actual behavior

For FG: replace For Salt and Solvents: Version 2.8.0-rc.4-replace; Version 2.9.0-rc.4 - a bond is formed For FG connected with Atom or FG: replace

Expected behavior

For FG: Connection 'FG---FG' For Salt and Solvents: FG appears where the left mouse button was released without a connection For FG connected with Atom or FG: Connection 'FG---FG---' where - Atom or FG Screenshots

https://user-images.githubusercontent.com/62464241/221228664-ee8d8af0-1422-4bb0-a2dd-1d00e3857868.mp4

Desktop (please complete the following information):

Ketcher version Version 2.8.0-rc.4

Additional context Related discussion: https://github.com/epam/ketcher/discussions/2315

KonstantinEpam23 commented 1 year ago

Relates to: https://github.com/epam/ketcher/issues/2394