mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: mouse right click can add new comment
This commit is contained in:
@ -7,8 +7,9 @@ import { ControlMode } from '../types'
|
||||
export const CommentCursor: FC = memo(() => {
|
||||
const controlMode = useStore(s => s.controlMode)
|
||||
const mousePosition = useStore(s => s.mousePosition)
|
||||
const isCommentPlacing = useStore(s => s.isCommentPlacing)
|
||||
|
||||
if (controlMode !== ControlMode.Comment)
|
||||
if (controlMode !== ControlMode.Comment || isCommentPlacing)
|
||||
return null
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user