gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

scroll speed too high - widgets jump around on the screen when dragging

Open damianidczak opened this issue 3 years ago • 7 comments

Subject of the issue

Why when I grab a widget and move down, does the widget move very, very, very fast? When I move the mouse quickly, the widgets jump around on the screen and it's very hard to arrange them.

Your environment

System: OS: Linux 5.15 Ubuntu 20.04.4 LTS (Focal Fossa) CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics Memory: 21.96 GB / 30.70 GB Container: Yes Shell: 5.0.17 - /bin/bash Binaries: Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm Browsers: Chrome: 108.0.5359.124 Firefox: 109.0 npmPackages: @vitejs/plugin-vue: 4.0.0 => 4.0.0 vite: 4.0.4 => 4.0.4

"gridstack": "7.2.2",

Steps to reproduce

Working demo from gridstack example gridstack

Expected behavior

With more widgets (exceeding the viewport) the widgets do not jump. Grabbing the widget and moving down does not have the effect of jumping down very quickly.

damianidczak avatar Jan 27 '23 06:01 damianidczak

I was really hoping @VincentMolinie would contribute his workaround instead of fixing it outside of the lib... disapointed in lack of contributions.

adumesny avatar Feb 11 '23 02:02 adumesny

@adumesny do you plan to fix this bug? And at what time?

damianidczak avatar Feb 24 '23 10:02 damianidczak

@Qualterink too busy these days unless someone wants to sponsor it (or I need it for work).

adumesny avatar Feb 24 '23 20:02 adumesny

Hi @adumesny! I would be interested to have a look into it, or sponsor it. How would that work?

antoine92190 avatar Dec 22 '25 09:12 antoine92190

@antoine92190 reach out directly on slack if you want to sponsort that work - else have a look at the code... there is a review made by someone, but that code is incorrect (don't want yet another option) and need to fix it the right way.

adumesny avatar Dec 22 '25 15:12 adumesny

@adumesny I just opened a PR that improves this behavior, but I would need your expertise to make sure I'm not introducing any regression with it.

antoine92190 avatar Dec 22 '25 16:12 antoine92190

shoudl be fixed in next release

adumesny avatar Mar 30 '26 23:03 adumesny