From 97d8cec94e29e315b1e725f1d87b74d5edfacaef Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 21 Aug 2020 16:40:05 +0100 Subject: [PATCH] dedup --- src/components/views/rooms/AppsDrawer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/AppsDrawer.js b/src/components/views/rooms/AppsDrawer.js index 3a60f21f9c..9b37dd3f4f 100644 --- a/src/components/views/rooms/AppsDrawer.js +++ b/src/components/views/rooms/AppsDrawer.js @@ -240,11 +240,11 @@ const PersistentVResizer = ({id, minHeight, maxHeight, className, handleWrapperC minHeight={minHeight} maxHeight={maxHeight} onResizeStart={() => { - setResizing(true); + if (!resizing) setResizing(true); }} onResizeStop={(e, dir, ref, d) => { setHeight(height + d.height); - setResizing(false); + if (resizing) setResizing(false); }} handleWrapperClass={handleWrapperClass} handleClasses={{bottom: handleClass}}