diff --git a/demo/index.html b/demo/index.html index ed3b6b78..375fa154 100644 --- a/demo/index.html +++ b/demo/index.html @@ -28,6 +28,7 @@

Demos

  • Responsive: using breakpoints
  • Responsive: using layout:'none'
  • Right-To-Left (RTL)
  • +
  • Scroll Speed
  • Serialization
  • Size To Content
  • Static
  • diff --git a/demo/scrollSpeed.html b/demo/scrollSpeed.html new file mode 100644 index 00000000..0b11e0f4 --- /dev/null +++ b/demo/scrollSpeed.html @@ -0,0 +1,78 @@ + + + + + + + Scroll Speed Demo + + + + + + +
    +

    Scroll Speed Demo

    +

    This demo shows 20 widgets to test scroll speed behavior when dragging items. Try dragging widgets near the top or bottom of the viewport to see the scrolling effect.

    +
    + + + 0 = no limit, higher values = slower scrolling +
    +

    +
    +
    + + + + \ No newline at end of file diff --git a/doc/README.md b/doc/README.md index e4c31a9e..5b3b3ae5 100644 --- a/doc/README.md +++ b/doc/README.md @@ -116,6 +116,7 @@ gridstack.js API - `marginBottom`: numberOrString - `marginLeft`: numberOrString - `maxRow` - maximum rows amount. Default is `0` which means no max. +- `maxScrollSpeed` - (number) limits the speed that the user wll scroll up and down in the grid. This is most noticable in large grids. Default: `0` which indicates no limit on the scroll speed. Any value provided here should be positive. - `minRow` - minimum rows amount which is handy to prevent grid from collapsing when empty. Default is `0`. You can also do this with `min-height` CSS attribute on the grid div in pixels, which will round to the closest row. - `nonce` - If you are using a nonce-based Content Security Policy, pass your nonce here and GridStack will add it to the `