透過集合功能整理內容
你可以依據偏好儲存及分類內容。
blockly > Touch
觸控命名空間
函式
Variables
變數 |
說明 |
TOUCH_ENABLED |
瀏覽器是否啟用觸控功能。從 Closure 的 goog.events.BrowserFeature.TOUCH_ENABLED 中複製而來 |
TOUCH_MAP |
TOUCH_MAP 查詢字典會指定搭配滑鼠事件觸發的其他觸控事件。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","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-07-25 (世界標準時間)。"],[[["The Blockly Touch namespace manages touch interactions and gestures within the Blockly environment."],["It provides functions to track and identify touch streams, ensuring only one touch interaction is active at a time."],["The namespace includes variables for detecting touch capabilities and mapping touch events to corresponding mouse events for cross-platform compatibility."],["Developers can utilize the Touch namespace's functions to control touch behavior and integrate touch-based interactions in their Blockly applications."]]],["The Touch namespace in Blockly manages touch interactions. Key actions include checking and clearing a touch identifier to track a specific touch stream, ensuring only one drag/gesture is active. `getTouchIdentifierFromEvent` retrieves the pointer identifier, while `shouldHandleEvent` determines if an event should be processed. `TOUCH_ENABLED` indicates browser touch capability and `TOUCH_MAP` defines additional touch events related to mouse actions. These functions are for managing how Blockly handles various touch interactions.\n"]]