Stay organized with collections
Save and categorize content based on your preferences.
blockly > ScrollbarPair > canScrollVertically
Returns whether scrolling vertically is enabled.
Signature:
canScrollVertically(): boolean;
Returns:
boolean
True if vertical scroll is enabled.
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 `ScrollbarPair.canScrollVertically()` method determines if vertical scrolling is currently enabled for the associated element."],["It returns `true` if vertical scrolling is enabled, otherwise it returns `false`."],["This method provides a way to check the vertical scroll status within a Blockly environment."]]],["The `canScrollVertically()` method, part of the `ScrollbarPair` class, determines if vertical scrolling is enabled. It returns a boolean value: `true` if vertical scrolling is possible, and implicitly `false` otherwise. This method takes no arguments and its sole purpose is to report the availability of vertical scrolling.\n"]]