fix: close on drag start
This commit is contained in:
parent
26e41b6e2a
commit
c4ad3de036
@ -29,6 +29,7 @@ import {
|
||||
useTheme,
|
||||
} from "@mui/material";
|
||||
import {
|
||||
collapseAllQuestions,
|
||||
copyQuestion,
|
||||
deleteQuestion,
|
||||
deleteQuestionWithTimeout,
|
||||
@ -324,7 +325,6 @@ const QuestionPageCardTitle = memo<Props>(function ({
|
||||
{page + 1}
|
||||
</Box>
|
||||
)}
|
||||
{!isExpanded && (
|
||||
<IconButton
|
||||
disableRipple
|
||||
sx={{
|
||||
@ -333,10 +333,11 @@ const QuestionPageCardTitle = memo<Props>(function ({
|
||||
bottom: isMobile ? "0" : null,
|
||||
}}
|
||||
{...draggableProps}
|
||||
onMouseDown={collapseAllQuestions}
|
||||
onTouchStart={collapseAllQuestions}
|
||||
>
|
||||
<PointsIcon style={{ color: "#4D4D4D", fontSize: "30px" }} />
|
||||
</IconButton>
|
||||
)}
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user