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 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-10 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]