epam / ketcher

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

Movement of structure ceases when it reaches the boundaries of canvas, requiring the consistent movement of mouse to continue its motion #2909

Closed Zhirnoff closed 1 year ago

Zhirnoff commented 1 year ago

Steps to Reproduce

  1. Open Ketcher
  2. Add two Benzene rings on canvas
  3. Select one of them and move to the edges of canvas

Actual behavior The movement of the structure occurs in shaking when the user brings the structure close to the edge of the canvas, and in order for the structure to continuously move beyond the canvas boundaries, continuous mouse movements are required.

Expected behavior When the user brings the structure close to the edge of the canvas, smooth and continuous movement should be ensured instead of shaking motion. Additionally, the structure should be able to move beyond the canvas boundaries without the need for continuous mouse movements.

Screenshots

https://github.com/epam/ketcher/assets/62464241/289f3432-1baa-4293-a9aa-9222fbfe79e6

Desktop (please complete the following information):

Ketcher version Version 2.12.0-rc.3

Zhirnoff commented 1 year ago

Test cases are written by me.

Zhirnoff commented 1 year ago

Pre-tested. Bug is fixed. But there are still some comments that will be fixed in another task

https://github.com/epam/ketcher/assets/62464241/6c2b087d-c7da-4df1-8223-9b65141f1d8a