From b827bdfecc5646b479c7e5654ed98243de91cf9a Mon Sep 17 00:00:00 2001
From: Lionel Han <47760119+IGoByJoe@users.noreply.github.com>
Date: Thu, 6 Aug 2020 17:24:56 -0700
Subject: cleaned up code and fixed bugs

---
 src/client/views/nodes/AudioResizer.tsx | 48 ---------------------------------
 1 file changed, 48 deletions(-)
 delete mode 100644 src/client/views/nodes/AudioResizer.tsx

(limited to 'src/client/views/nodes/AudioResizer.tsx')

diff --git a/src/client/views/nodes/AudioResizer.tsx b/src/client/views/nodes/AudioResizer.tsx
deleted file mode 100644
index f9ab8353f..000000000
--- a/src/client/views/nodes/AudioResizer.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-import { observer } from "mobx-react"
-import React = require("react");
-import "./AudioResizer.scss";
-
-@observer
-export class AudioResizer extends React.Component {
-    private _isPointerDown = false;
-
-    onPointerDown = (e: React.PointerEvent): void => {
-        e.stopPropagation();
-        e.preventDefault();
-        this._isPointerDown = true;
-        console.log("click");
-
-        document.removeEventListener("pointermove", this.onPointerMove);
-        document.addEventListener("pointermove", this.onPointerMove);
-        document.removeEventListener("pointerup", this.onPointerUp);
-        document.addEventListener("pointerup", this.onPointerUp);
-    }
-
-    onPointerUp = (e: PointerEvent): void => {
-        e.stopPropagation();
-        e.preventDefault();
-        this._isPointerDown = false;
-
-        document.removeEventListener("pointermove", this.onPointerMove);
-        document.removeEventListener("pointerup", this.onPointerUp);
-    }
-
-    onPointerMove = (e: PointerEvent): void => {
-        e.stopPropagation();
-        e.preventDefault();
-        console.log("drag");
-
-        if (!this._isPointerDown) {
-            return;
-        }
-
-        let resize = document.getElementById("resizer");
-        if (resize) {
-            resize.style.right += e.movementX;
-        }
-    }
-
-    render() {
-        return <div className="resizer" onPointerDown={this.onPointerDown}></div>
-    }
-}
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

