Skip to content

Weird behavior when moving objects on the map while snap to grid is enabled #3689

@andreknx

Description

@andreknx

Describe the bug
On the web UI when you enable the snap to grid option and try to align objects like nodes or rectangles, it does not behave as expected, which makes it hard to align objects. It seems that it is not using the center point for alignment. If you just click on the object it also moves down a bit every time you click it. This was tested on a freshly installed GNS3 VM.

GNS3 version and operating system (please complete the following information):

  • OS: [Linux]
  • GNS3 version [3.0.1]

To Reproduce
Steps to reproduce the behavior:

  1. Create a new blank project
  2. Click on the icon in the top left --> map settings --> snap to grid
  3. Create 2 rectangles and try to align them
  4. See error

Screenshots or videos
https://www.youtube.com/watch?v=JhldTYMNAns

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions