Skip to content

Commit

Permalink
fix: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
eri24816 committed Apr 6, 2024
1 parent 56dd2f7 commit 7e2d89c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion frontend/src/component/eventDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ export class EventDispatcher extends Component{
}

private _onMouseUp(event: MouseEvent){
debugger
this.fowardCalled = false;
if (this._isDragging)
this.onDragEnd.invoke(event, new Vector2(event.clientX, event.clientY));
Expand Down
1 change: 0 additions & 1 deletion frontend/src/component/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ export class Transform extends Component{
}

private onDrag(e:MouseEvent,mousePos:Vector2,prevMousePos:Vector2){
debugger
if((e.buttons & this.dragButton) == 0)
return;
e.preventDefault(); // prevents selecting text
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/inspector/ListEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export class ListEditor extends Editor<ListTopic<any>> {
<div class="attribute-editor flex-horiz stretch">
<div ref="attributeName" class="attribute-name"></div>
<div class="container">
<div ref="contrainer" class="container" slot="container" id="container"></div>
<div ref="container" class="container" slot="container" id="container"></div>
<div class="container horiz">
<input ref="input" type="text" class="grow">
<input ref="addInput" type="text" class="grow">
<button ref="addButton" class="button center-align">+</button>
</div>
</div>
Expand Down Expand Up @@ -47,10 +47,10 @@ export class ListEditor extends Editor<ListTopic<any>> {
private readonly container: HTMLDivElement
private readonly addButton: HTMLButtonElement
private readonly addInput: HTMLInputElement
private readonly attributeName: HTMLDivElement
private readonly items: Set<ListEditorItem> = new Set();
private locked = false;

private readonly attributeName: HTMLDivElement

constructor(displayName: string, editorArgs: any, connectedAttributes: Topic<any>[]) {
super()
Expand Down
1 change: 0 additions & 1 deletion frontend/src/sobjects/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ export class Node extends CompSObject implements IControlHost {
})

this.link(this.eventDispatcher.onDrag,(e: MouseEvent,newPos: Vector2,oldPos: Vector2) => {
debugger
if (e.buttons != 1) return this.eventDispatcher.forwardEvent()
// pass the event to the editor to box select
if(e.ctrlKey){
Expand Down

0 comments on commit 7e2d89c

Please sign in to comment.