Hand tool and Zoom controls issues, when the Ketcher editor is not in a non-full-size window
AleksandarAlchemy opened this issue · 0 comments
AleksandarAlchemy commented
Steps to Reproduce
The minimal reproduction Stackblitz project can be found here:
https://stackblitz.com/edit/ketcher-editor-hand-tool-issue
Video:
https://github.com/epam/ketcher/assets/53595997/3903089d-187b-4a4d-8532-3de5abbc31c7
- Put the Ketcher Editor in a wrapper div, that has some offset (it's some child, not the only element on the page),
- Select Hand Tool,
- Move the cursor to the right, to the canvas,
- Cursor will get an offset, equal to how much the editor is far from the client start coordinates.
- Also, the Zoom controls menu has the same offset.
Actual behavior
When moving the Hand tool from the toolbar, there's a drop in movement.
Expected behavior
When moving the Hand tool from the toolbar, there shouldn't be a drop in movement.
Desktop (please complete the following information):
- OS: iOS 14.3
- Browser Google Chrome
- Version 121.0.6167.184
Ketcher version [e.g. v2.4.2].
Version 2.15.1
Build at 2023-12-11; 16:30:15