Thanks to visit codestin.com
Credit goes to github.com

Skip to content

auto scroll doesn't work when inside a container with scroll bar #827

Closed
@siecj

Description

@siecj

Subject of the issue

I'm trying to let the grid stack auto scroll the container (not browser body but a DIV with scroll bar) and it doesn't work.
I already set the draggable: { scroll: true }.

Your environment

  • v0.2.6; v0.3.0

Steps to reproduce

I directly modified on the demo/float.html by adding the following part.

  1. Change the grid stack option like below and the auto scroll worked when there is browser scroll bar.
    image
  2. After put the grid stack element inside a DIV, the auto scroll doesn't work anymore.
    image
    image

Expected Behavior

The auto scroll should work inside the DIV.

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions