From 02a8f546db3b2c016fe137f044ef02591924f041 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 20 Feb 2024 10:51:12 -0600 Subject: [PATCH] remove touch events for now --- web/src/hooks/use-handle-dragging.ts | 6 +++--- web/vite.config.ts | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/src/hooks/use-handle-dragging.ts b/web/src/hooks/use-handle-dragging.ts index ca4f15e85..d0e180646 100644 --- a/web/src/hooks/use-handle-dragging.ts +++ b/web/src/hooks/use-handle-dragging.ts @@ -29,7 +29,7 @@ function useDraggableHandler({ currentTimeRef, }: DragHandlerProps) { const handleMouseDown = useCallback( - (e: React.MouseEvent|React.TouchEvent) => { + (e: React.MouseEvent) => { e.preventDefault(); e.stopPropagation(); setIsDragging(true); @@ -38,7 +38,7 @@ function useDraggableHandler({ ); const handleMouseUp = useCallback( - (e: MouseEvent|TouchEvent) => { + (e: MouseEvent) => { e.preventDefault(); e.stopPropagation(); if (isDragging) { @@ -49,7 +49,7 @@ function useDraggableHandler({ ); const handleMouseMove = useCallback( - (e: MouseEvent|TouchEvent) => { + (e: MouseEvent) => { if (!contentRef.current || !timelineRef.current || !scrollTimeRef.current) { return; } diff --git a/web/vite.config.ts b/web/vite.config.ts index a97dbd014..e72ebb69a 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -12,24 +12,24 @@ export default defineConfig({ server: { proxy: { '/api': { - target: 'http://localhost:5000', + target: 'http://192.168.5.4:5000', ws: true, }, '/vod': { - target: 'http://localhost:5000' + target: 'http://192.168.5.4:5000' }, '/clips': { - target: 'http://localhost:5000' + target: 'http://192.168.5.4:5000' }, '/exports': { - target: 'http://localhost:5000' + target: 'http://192.168.5.4:5000' }, '/ws': { - target: 'ws://localhost:5000', + target: 'ws://192.168.5.4:5000', ws: true, }, '/live': { - target: 'ws://localhost:5000', + target: 'ws://192.168.5.4:5000', changeOrigin: true, ws: true, },