{"code":"(window.webpackJsonpGUI=window.webpackJsonpGUI||[]).push([[61],{1587:function(t,e,n){\"use strict\";n.r(e),n.d(e,\"resources\",(function(){return o}));const o={\"userscript.js\":async function(t){let{addon:e,global:n,console:o}=t;const r=await e.tab.traps.getBlockly(),s=r.BubbleDragger.prototype.endBubbleDrag;r.BubbleDragger.prototype.endBubbleDrag=function(t,n){if(!e.self.disabled&&this.draggingBubble_.comment){const t=this.draggingBubble_.comment.iconXY_.y-r.ScratchBubble.TOP_BAR_HEIGHT/2;n.y=t-this.startXY_.y}return s.call(this,t,n)}}}}}]);","name":"js/pentapod/addon-entry-tw-straighten-comments.cce867fb08352d76e643.js","input":"(window[\"webpackJsonpGUI\"] = window[\"webpackJsonpGUI\"] || []).push([[61],{\n\n/***/ 1587:\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, \"resources\", function() { return /* binding */ resources; });\n\n// CONCATENATED MODULE: ./src/addons/addons/tw-straighten-comments/userscript.js\n/* harmony default export */ var userscript = (async function (_ref) {\n let {\n addon,\n global,\n console\n } = _ref;\n // see fix-editor-comments\n const Blockly = await addon.tab.traps.getBlockly();\n const originalCommentEndDrag = Blockly.BubbleDragger.prototype.endBubbleDrag;\n Blockly.BubbleDragger.prototype.endBubbleDrag = function (e, currentDragDeltaXY) {\n if (!addon.self.disabled && this.draggingBubble_.comment) {\n const y = this.draggingBubble_.comment.iconXY_.y - Blockly.ScratchBubble.TOP_BAR_HEIGHT / 2;\n currentDragDeltaXY.y = y - this.startXY_.y;\n }\n return originalCommentEndDrag.call(this, e, currentDragDeltaXY);\n };\n});\n// CONCATENATED MODULE: ./src/addons/addons/tw-straighten-comments/_runtime_entry.js\n/* generated by pull.js */\n\nconst resources = {\n \"userscript.js\": userscript\n};\n\n/***/ })\n\n}]);","inputSourceMap":null}