blib-la / blibla-comfyui-extensions

Extensions for ComfyUI
GNU Affero General Public License v3.0
138 stars 11 forks source link

[BUG] Force Snap to Grid only half works #26

Open Koitenshin opened 1 month ago

Koitenshin commented 1 month ago

Describe the bug Snapping to grids only applies when you're moving nodes, but doesn't work at all when you resize them. I still have to hold down Shift when I want to resize to the grid.

To Reproduce Steps to reproduce the behavior:

  1. Install Extension, Launch server, reopen webpage
  2. Click Gear Icon to open settings and check "Force Snap to Grid"
  3. Move a node, it snaps to grid. Resize a node by dragging the bottom right corner of that node, it doesn't snap at all.

Expected behavior I thought it would snap to grid at all times, no matter if I was moving a node or resizing it.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

pixelass commented 1 month ago

Thank you for taking time to report this issue. It is a known issue, Back when I created this extension, this was the easiest way to implement it. I can see if I can add the forced snapping during resize.

Koitenshin commented 1 month ago

Thank you for responding. I hope you'll be able to add it.