Skip to content

Dragging node not activating scrolling inside container #2074

@TheAndre980

Description

@TheAndre980

Subject of the issue

I want to use gridstack in a small dialog on a angular project but the dialog does not scroll when needed.

Your environment

Project in angular 14
Gridstack version: gridstack 7.0.0 (also tested with 6.0.1)
Browser: Google chrome 105
OS: Windows 10

Steps to reproduce

Just drag a node on the edge of the container and then at the edge of the page.
https://jsfiddle.net/TheAndre98/54jdtsy2/

Update: use https://jsfiddle.net/adumesny/z0ra21c7/ (need float:true to see issue)

Expected behavior

Dragging node on the edge of container makes the container scroll

Actual behavior

Only scrolls with a node on the edges of page/window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions