feat(editor): 💫 Can pan graph with mouse + click
This commit is contained in:
@ -65,7 +65,8 @@ export const BlockNode = ({ block, blockIndex }: Props) => {
|
||||
const handleTitleSubmit = (title: string) =>
|
||||
updateBlock(blockIndex, { title })
|
||||
|
||||
const handleMouseDown = () => {
|
||||
const handleMouseDown = (e: React.MouseEvent) => {
|
||||
e.stopPropagation()
|
||||
setIsMouseDown(true)
|
||||
}
|
||||
const handleMouseUp = () => {
|
||||
|
Reference in New Issue
Block a user