From ddfc2a54b88ad6d4255eba2c213bb8936fdf660a Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Wed, 9 Sep 2020 10:14:51 +0800 Subject: [PATCH] FloatingPlayer: Minor function-renaming for clarity --- ui/component/fileRenderFloating/view.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/component/fileRenderFloating/view.jsx b/ui/component/fileRenderFloating/view.jsx index 247da066d..37e37ae87 100644 --- a/ui/component/fileRenderFloating/view.jsx +++ b/ui/component/fileRenderFloating/view.jsx @@ -90,12 +90,12 @@ export default function FileRenderFloating(props: Props) { return null; } - function handleStart(e, ui) { + function handleDragStart(e, ui) { // Not really necessary, but reset just in case 'handleStop' didn't fire. setWasDragging(false); } - function handleDrag(e, ui) { + function handleDragMove(e, ui) { setWasDragging(true); const { x, y } = position; @@ -107,7 +107,7 @@ export default function FileRenderFloating(props: Props) { }); } - function handleStop(e, ui) { + function handleDragStop(e, ui) { if (wasDragging) { e.stopPropagation(); setWasDragging(false); @@ -116,9 +116,9 @@ export default function FileRenderFloating(props: Props) { return (