แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
ย้าย
พื้นที่ทำงานหลักของ Blockly สามารถเคลื่อนย้ายไปรอบๆ ได้โดยใช้ 3 วิธี ได้แก่ แถบเลื่อน เมาส์ หรือล้อเลื่อนของเมาส์
การตั้งค่าการย้ายจะกำหนดโดยออบเจ็กต์ที่เป็นส่วนหนึ่งของการกำหนดค่าของ Blockly มีตัวอย่างดังต่อไปนี้
var workspace = Blockly.inject('blocklyDiv',
{move:{
scrollbars: {
horizontal: true,
vertical: true
},
drag: true,
wheel: false}
});
กำหนดว่าพื้นที่ทำงานมีแถบเลื่อนแนวตั้งหรือแนวนอน ใช้ออบเจ็กต์ที่พร็อพเพอร์ตี้ horizontal
กำหนดว่าจะเปิดใช้การเลื่อนแนวนอนหรือไม่ และพร็อพเพอร์ตี้ vertical
จะกำหนดว่าเปิดใช้การเลื่อนแนวตั้งหรือไม่
หากมีการส่งบูลีน ก็เทียบเท่ากับการส่งออบเจ็กต์ที่ตั้งค่าทั้งพร็อพเพอร์ตี้ horizontal
และ vertical
เป็นค่าดังกล่าว ค่าเริ่มต้นจะเป็น true
(เปิดใช้ทั้งการเลื่อนในแนวนอนและแนวตั้ง) หากพื้นที่ทำงานมีหมวดหมู่
ลาก
ระบุว่าพื้นที่ทํางานสามารถลากด้วยเมาส์ได้หรือไม่ false
เสมอหาก scrollbars
คือ false
(อย่างน้อยในการแยกวิเคราะห์ตัวเลือก) ค่าเริ่มต้นจะเป็น true
หาก scrollbars
เป็น true
ล้อ
กำหนดว่าพื้นที่ทำงานจะเลื่อนด้วยล้อเลื่อนของเมาส์ได้หรือไม่ false
เสมอหาก scrollbars
คือ false
(อย่างน้อยในการแยกวิเคราะห์ตัวเลือก) ค่าเริ่มต้นคือ false
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-01 UTC
[null,null,["อัปเดตล่าสุด 2023-12-01 UTC"],[[["Blockly workspaces can be navigated using scrollbars, mouse dragging, and mouse wheel scrolling."],["These navigation options are configurable through Blockly's initialization options using the `move` property and its sub-properties: `scrollbars`, `drag`, and `wheel`."],["Scrollbars can be individually enabled or disabled for horizontal and vertical scrolling, while dragging and wheel scrolling are enabled or disabled with boolean values."]]],["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"]]