interact.js icon indicating copy to clipboard operation
interact.js copied to clipboard

snapEdges doesn't seem to snap at all

Open mattleonowicz opened this issue 3 years ago • 4 comments

snapEdges modifier for resizable seems to be not working at all.

Codepen: https://codepen.io/mattleonowicz/pen/qBooQYG

Expected behavior

When reisizing the block it should snap to the grid of 40x40

Actual behavior

No snapping at all

System configuration

interact.js version: 1.10.17 Browser name and version: Chrome 104 Operating System: Mac OS

mattleonowicz avatar Aug 04 '22 15:08 mattleonowicz

You need to set set a range: number in the grid or snapEdges options.

I should have made the default value Infinity

taye avatar Dec 25 '22 21:12 taye