-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: https://github.com/google/blockly/blob/b8ad7d307f9f2abffe5306818155907287cfa634/core/workspace_svg.ts#L2179
To Fix
- Remove the
@internaltag from the scroll method.