Skip to content

auto-scroll triggers off the cursor nearing an edge - #3426

Merged
adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master
Oct 1, 2026
Merged

adumesny merged 1 commit into
gridstack:masterfrom
adumesny:master

Conversation

@adumesny

@adumesny adumesny commented Oct 1, 2026

Copy link
Copy Markdown
Member

Description

  • fix Auto scroll option #3356
  • not sure what I was thinking doing scroll just based on widget being outside, you also need to check mouse cursor moving towards the top/bottom (~10px) and being close to edges (8% min 30px) to start scrolling.
  • also sped up scrolling a bit now

this makes it possible to horizontally move large objects without scholling to top/bottom unless you mean to

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* fix gridstack#3356
* not sure what I was thinking doing scroll just based on widget being outside, you also need to check mouse cursor moving towards the top/bottom (~10px) and being close to edges (8% min 30px) to start scrolling.
* also sped up scrolling a bit now

this makes it possible to horizontally move large objects without scholling to top/bottom unless you mean to
@adumesny
adumesny merged commit a3e0387 into gridstack:master Oct 1, 2026
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.

Auto scroll option

1 participant