Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrr committed Jan 22, 2025
1 parent 649c62a commit 13c430a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/ui/core_extend_patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ export default function extendCorePatch()
delete this._subpatchOpCache[patchId];
};

CABLES.Patch.prototype._subPatchCacheAdd = function (subPatchId, op)
CABLES.Patch.prototype.subPatchCacheAdd = function (subPatchId, op)
{
console.log("cacheeeeee");
if (this._subpatchOpCache[subPatchId])
{
this._subpatchOpCache[subPatchId].ops = this._subpatchOpCache[subPatchId].ops || {};
Expand Down
2 changes: 2 additions & 0 deletions src/ui/glpatch/glop.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ export default class GlOp extends Events
{
if (userSettings.get("quickLinkLongPress")) gui.longPressConnector.longPressStart(this._op, e);
}
console.log("mouseButtonWheelDownDown", CABLES.mouseButtonWheelDown, this._glPatch.mouseState.buttonMiddle);
}

perf.finish();
Expand All @@ -542,6 +543,7 @@ export default class GlOp extends Events
if (gui.longPressConnector.isActive()) gui.longPressConnector.finish(e, this._op);
this.mouseButtonWheelDown = false;
}
console.log("mouseButtonWheelUp", CABLES.mouseButtonWheelDown, this._glPatch.mouseState.buttonMiddle);

this._glPatch.opShakeDetector.up();
this._glPatch.emitEvent("mouseUpOverOp", e, this._id);
Expand Down
6 changes: 0 additions & 6 deletions src/ui/glpatch/glpatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,18 +790,12 @@ export default class GlPatch extends Events

if (this._dropInCircleLink)
{
console.log(1);
// if (this._cable.isHoveredButtonRect() && gui.patchView.getSelectedOps().length == 1)
console.log("gui.patchView.getSelectedOps().length", gui.patchView.getSelectedOps().length);
if (gui.patchView.getSelectedOps().length == 1)
{
console.log(2);
for (const i in this.selectedGlOps)
{
console.log(3);
if (this.selectedGlOps[i].isHovering()) // && this.selectedGlOps[i].isDragging
{
console.log(4);
const coord = this.screenToPatchCoord(e.offsetX, e.offsetY);
gui.patchView.insertOpInLink(this._dropInCircleLink.link, this.selectedGlOps[i].op, coord[0], coord[1]);

Expand Down
2 changes: 0 additions & 2 deletions src/ui/glpatch/glport.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export default class GlPort
*/
this._port = p;

// this._port.isLi

/**
* @type {GlOp}
*/
Expand Down

0 comments on commit 13c430a

Please sign in to comment.