סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > IDragger > onDragEnd
שיטת IDragger.onDragEnd()
מתבצע ניקוי של כל גרירה.
Signature:
onDragEnd(e: PointerEvent, totalDelta: Coordinate): void;
פרמטרים
פרמטר |
סוג |
תיאור |
e |
PointerEvent |
PointerEvent שסיים את הגרירה. |
totalDelta |
ניהול צוותים |
המרחק הכולל, בפיקסלים, שהעכבר עבר מאז תחילת הגרירה. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון 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 `onDragEnd()` method in Blockly's IDragger interface is responsible for performing any necessary cleanup actions after a drag operation has concluded."],["This method receives two parameters: a PointerEvent representing the drag's completion and a Coordinate object indicating the total drag distance."],["`onDragEnd()` does not return any specific value (void)."]]],["The `onDragEnd` method, part of the `IDragger` interface, manages drag cleanup. It takes two parameters: a `PointerEvent` object representing the end of the drag and a `Coordinate` object named `totalDelta`. `totalDelta` indicates the total pixel distance moved during the drag. The method's primary action is to finalize the drag operation, returning void upon completion, indicating no return value.\n"]]