Skip to content

Commit

Permalink
changed snap method (Issue #375)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Feb 7, 2025
1 parent 89b2dff commit 5dfb1db
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ export class BPMNElementSnapper implements ISnapper {
snap(position: Point, element: GModelElement): Point {
// default move 1x1...
return {
x: Math.round(position.x),
y: Math.round(position.y)
// x: Math.round(position.x),
// y: Math.round(position.y)
// maybe the better snap behaviour...
x: Math.floor(position.x),
y: Math.floor(position.y)
};


}
}

Expand Down

0 comments on commit 5dfb1db

Please sign in to comment.