रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > IDragger > onDrag
I Dragonger.onDrag() विधि
खींचने और छोड़ने में इस्तेमाल होने वाले हैंडल. इनमें यह हिसाब लगाना भी शामिल है कि एलिमेंट को कहां ले जाना है.
हस्ताक्षर:
onDrag(e: PointerEvent, totalDelta: Coordinate): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
e |
PointerEvent |
PointerEvent ने खींचना जारी रखा. |
totalDelta |
निर्देशांक |
खींचने की शुरुआत के बाद से, माउस से मूव करने के बाद, पिक्सल में कुल दूरी. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (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-12 (UTC) को अपडेट किया गया."],[[["The `onDrag` method in Blockly's IDragger interface manages the dragging behavior of elements, determining their updated positions."],["This method takes a PointerEvent and total distance moved as input, using them to calculate and apply the element's new location."],["It's crucial for controlling the visual movement of elements during drag interactions within Blockly workspaces."]]],[]]