Skip to content

Commit

Permalink
fix: snap to grid (bottom) (#491)
Browse files Browse the repository at this point in the history
fixes issue in #482, snap to the end of the grid vertically
  • Loading branch information
yojona committed Jun 17, 2021
1 parent 2400003 commit 34a2b45
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -408,7 +408,7 @@ export function getGridGuidelines(
const guidelines: SnapGuideline[] = [];

if (snapGridHeight) {
for (let pos = 0; pos < containerHeight; pos += snapGridHeight) {
for (let pos = 0; pos <= containerHeight; pos += snapGridHeight) {
guidelines.push({
type: "horizontal",
pos: [0, throttle(pos - clientTop, 0.1)],
Expand Down

0 comments on commit 34a2b45

Please sign in to comment.