From 15cc880682936190ed0e23b6a65d5a531df18278 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 21 Apr 2024 12:35:40 -0700 Subject: [PATCH] Revert some changes that depended upon touch events --- packages/webamp/js/components/ResizeTarget.tsx | 8 +++++++- packages/webamp/js/components/WindowManager.tsx | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/webamp/js/components/ResizeTarget.tsx b/packages/webamp/js/components/ResizeTarget.tsx index 40c8b5758d..2af3092cac 100644 --- a/packages/webamp/js/components/ResizeTarget.tsx +++ b/packages/webamp/js/components/ResizeTarget.tsx @@ -70,6 +70,12 @@ function ResizeTarget(props: Props) { setMouseDown(true); }; - return
; + return ( +
+ ); } export default memo(ResizeTarget); diff --git a/packages/webamp/js/components/WindowManager.tsx b/packages/webamp/js/components/WindowManager.tsx index 89096541d6..4f7418c13c 100644 --- a/packages/webamp/js/components/WindowManager.tsx +++ b/packages/webamp/js/components/WindowManager.tsx @@ -177,7 +177,10 @@ export default function WindowManager({ windows: propsWindows }: Props) {
) => { + onMouseDown={(e: React.MouseEvent) => { + handleMouseDown(w.key, e); + }} + onTouchStart={(e: React.TouchEvent) => { handleMouseDown(w.key, e); }} style={{