이동 옵션
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Blockly의 기본 작업 영역은 스크롤 막대, 마우스 또는 마우스 휠의 세 가지 방법을 사용하여 이동할 수 있습니다.
이동 설정은 Blockly의 구성 옵션에 속하는 객체로 정의됩니다.
예를 들면 다음과 같습니다.
var workspace = Blockly.inject('blocklyDiv',
{move:{
scrollbars: {
horizontal: true,
vertical: true
},
drag: true,
wheel: false}
});
작업공간에 세로 또는 가로 스크롤바가 있는지 확인합니다. horizontal
속성이 가로 스크롤을 사용 설정할지 여부를 결정하고 vertical
속성이 세로 스크롤을 사용 설정할지 여부를 결정하는 객체를 사용합니다.
불리언이 전달되면 horizontal
및 vertical
속성이 모두 해당 값으로 설정된 객체를 전달하는 것과 같습니다. 작업공간에 카테고리가 있는 경우 기본값은 true
(가로 및 세로 스크롤 모두 사용 설정)입니다.
드래그
작업공간을 마우스로 드래그할 수 있는지 여부를 결정합니다. scrollbars
이 false
인 경우 항상 false
입니다 (옵션 파싱에서 최소한). scrollbars
이 true
인 경우 기본값은 true
입니다.
wheel
마우스 휠로 작업공간을 스크롤할 수 있는지 여부를 결정합니다. scrollbars
이 false
인 경우 항상 false
입니다 (옵션 파싱에서 최소한). 기본값은 false
입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-09-16(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-16(UTC)"],[],["Blockly's workspace movement is configured via the `move` object within its settings. This configuration allows defining the behavior of scrollbars, mouse dragging, and mouse wheel scrolling. `scrollbars` enables horizontal and/or vertical scrolling. `drag` enables mouse dragging, dependent on scrollbars being enabled. `wheel` enables mouse wheel scrolling, also dependent on scrollbars. Default settings include both scrollbars enabled and mouse dragging enabled, but mouse wheel disabled. If scrollbars are false then drag and wheel will be false as well.\n"]]