סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > צריך לגעת ב- > shouldHandleEvent
הפונקציה Touch.EligibleHandleEvent()
מחליטים אם לאפשר ל-Blockly לטפל באירוע הזה או להתעלם ממנו. אירועי עכבר ומגע מחייבים בדיקות מיוחדות מפני שאנחנו רוצים לטפל רק בשידור מגע אחד בכל פעם. כל האירועים האחרים צריכים תמיד לטפל.
Signature:
export declare function shouldHandleEvent(e: Event): boolean;
פרמטרים
פרמטר |
סוג |
תיאור |
e |
אירוע |
האירוע שצריך לבדוק. |
החזרות:
בוליאני
True אם צריך להעביר את האירוע הזה ל-handler הרשום. FALSE אם צריך לחסום אותו.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-10 (שעון 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"]],["עדכון אחרון: 2024-09-10 (שעון UTC)."],[[["The `Touch.shouldHandleEvent()` function in Blockly determines if an event should be processed or ignored by the system."],["Primarily focusing on mouse and touch interactions, this function ensures Blockly handles only one touch sequence at any given time, while other event types are consistently processed."],["It evaluates the provided event and returns `true` if the event should be managed by the designated handler or `false` if it should be disregarded."]]],[]]