Skip to content

feat: add empty cell hover preview - #1025

Open
enriquelaffranconi wants to merge 1 commit into
tiberiuzuld:masterfrom
enriquelaffranconi:feat/empty-cell-hover
Open

feat: add empty cell hover preview#1025
enriquelaffranconi wants to merge 1 commit into
tiberiuzuld:masterfrom
enriquelaffranconi:feat/empty-cell-hover

Conversation

@enriquelaffranconi

@enriquelaffranconi enriquelaffranconi commented Aug 18, 2026

Copy link
Copy Markdown

Summary

  • Add enableEmptyCellHover to show gridster's built-in ghost preview on free cells
  • Reuses existing empty-cell helpers (getPixelsX/Y, pixelsToPositionX/Y, checkCollision, movingItem, previewStyle())
  • Hides preview on mouse leave, when a button is held, or when collision rejects the cell
  • Allow click/context-menu while hover preview is visible by checking drag ownership instead of movingItem
  • Demo checkbox on the emptyCell example page and docs update

Show the existing ghost on free cells when enableEmptyCellHover is set.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant