8000 Add an API to programmatically scroll the workspace · Issue #7176 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add an API to programmatically scroll the workspace #7176
Closed
@BeksOmega

Description

@BeksOmega

🚧⚠️🚧 This issue is being saved for Grace Hopper Open Source Day. 🚧⚠️🚧 An event we're running to help girls and non-binary technologists make their first contributions to open source! Please see our list of help wanted issues if you'd like to contribute!


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:

scroll(x: number, y: number) {

To Fix

  1. Remove the @internal tag from the scroll method.

Metadata

Metadata

Labels

ghc-osdReserved for open source day: https://anitab-org.github.io/open-source-day/good first issueissue: feature requestDescribes a new feature and why it should be addedsize: smallBugs that can be picked up and completed in 1-3 days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0