Skip to content

Incorrect selection display when using ketcher.editor.options API #5583

Description

@Zhirnoff

Steps to Reproduce

  1. Open Ketcher in micro mode and DevTool Console
  2. Add any structures (e.g. Benzene rings)
  3. Use API window.ketcher.editor.options({ a: 1 }) or window.ketcher.editor.options({ viewOnlyMode: true })
  4. Take 'Rectangle selection' or 'Lasso' and select all structures

Actual behavior
When using the Selection Tool to select structures on canvas, incorrect visual artifacts appear, as shown in attached videos. Lines and shapes unrelated to original structures are displayed, leading to a distorted view of selected elements.

Expected behavior
The structures should be highlighted appropriately, with no visual artifacts or distortions during selection.

Screenshots

2024-09-25_13h41_46.mp4
2024-09-25_13h42_46.mp4

Desktop:

  • OS: Windows 11
  • Browser Chrome
  • Version 128.0.6613.120 (Official Build) (64-bit)

Ketcher version
[Version 2.25.0-rc.4]
Indigo version
[Version 1.24.0-rc.3]
Bug found during testing but apparently it was introduced much earlier: #4965

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions