Stay organized with collections
Save and categorize content based on your preferences.
blockly > WorkspaceSvg > isMovable
WorkspaceSvg.isMovable() method
Is this workspace movable?
This means the user can reposition the X Y coordinates of the workspace through input. This can be through scrollbars, scroll wheel, dragging, or through zooming with the scroll wheel or pinch (since the zoom is centered on the mouse position). This does not include zooming with the zoom controls since the X Y coordinates are decided programmatically.
Signature:
isMovable(): boolean;
Returns:
boolean
True if the workspace is movable, false otherwise.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `isMovable()` method determines if a user can change the workspace's position."],["User interactions like scrolling, dragging, and pinch-zooming are considered movable actions, while programmatic zoom adjustments are not."],["The method returns `true` if the workspace is movable and `false` otherwise."]]],[]]