-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: avoid selection change when ai-panel display #7002
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Your org has enabled the Graphite merge queue for merging into masterAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
||
if (this.state !== 'hidden') { | ||
this.viewportOverlayWidget?.lock(); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order can be swapped here.
!==
no need.
## Features - toeverything/blocksuite#6995 @fundon ## Bugfix - toeverything/blocksuite#7002 @donteatfriedrice - toeverything/blocksuite#7000 @regischen - toeverything/blocksuite#7001 @fundon - toeverything/blocksuite#6999 @Flrande - toeverything/blocksuite#6997 @donteatfriedrice - toeverything/blocksuite#6996 @regischen - toeverything/blocksuite#6994 @L-Sun ## Refactor ## Misc
To fixed TOV-834
Before, when ai-panel opened and has generated some content, if user click or drag outside of the ai panel, the selection will be changed, then the response actions will be wired, for example, insert below or replace the wrong blocks.
Screen.Recording.2024-05-09.at.16.07.48.mov
Now can lock the viewport when ai-panel opened by calling affineViewportOverlayWidget.lock().
Screen.Recording.2024-05-09.at.16.09.21.mov