Description
🚧
Check for duplicates
- I have searched for similar issues before opening a new one.
Problem
Sometimes you want to change how your users interact with scrolling the workspace. E.g. if you have a workspace that only supports vertical scrolling or only supports horizontal scrolling, you may want to add buttons that scroll instead of using the scrollbars.
Context: https://groups.google.com/g/blockly/c/klLbJ1aQqsA/m/lYjP5tyAAgAJ
Request
Add an API for programatically scrolling the workspace. I'm not sure what the units should be (absolute vs relative, percentage vs workspace units, etc).
Alternatives considered
No response
Additional context
We currently have a scroll method on the workspace, but it is marked as @internal
:
Line 2179 in b8ad7d3
To Fix
- Remove the
@internal
tag from the scroll method.