epam / ketcher

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

Macro: When editing sequences over 2000 monomers, slight slowdowns occur #4303

Open Zhirnoff opened 6 months ago

Zhirnoff commented 6 months ago

Steps to Reproduce

  1. Switch to macro
  2. Add sequence more than 2000 monomers
  3. Switch to Sequence layout
  4. Click right mouse on sequence and select 'edit sequence'
  5. Add any monomers by typing on keyboard

Actual behavior When editing sequences over 2000 monomers, slight slowdowns occur. If you quickly enter letters, this becomes very noticeable because you stopped typing and letters still appear in the grid

Expected behavior When editing sequences over 2000 monomers, slight slowdowns not occur. Even if the user quickly enters letters, they are entered instantly and when he stops entering, new letters do not appear.

Screenshots

https://github.com/epam/ketcher/assets/62464241/5fe8ff1d-4e18-49b5-9665-6ee16b3114fc

Desktop (please complete the following information):

Ketcher version [Version 2.20.0-rc.1]

AlexeyGirin commented 5 months ago

Moved to Refined Backlog since no fix over 2 versions