mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 19:02:23 +08:00
fix(core): right click on edgeless will also damage other functions (#13466)
Close [AI-411](https://linear.app/affine-design/issue/AI-411) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Bug Fixes - Releasing the mouse now always ends panning, preventing stuck states. - Actions cancel correctly when you release without dragging. - Refactor - More consistent Copilot activation: use right-click or Ctrl (⌘ on Mac) + left-click. - Smoother switching to Copilot with improved drag-state reset and cleanup. - Removed automatic restoration of previous selection when activating Copilot. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -100,8 +100,8 @@ export class PanTool extends BaseTool<PanToolOption> {
|
||||
const dispose = on(document, 'pointerup', evt => {
|
||||
if (evt.button === MouseButton.MIDDLE) {
|
||||
restoreToPrevious();
|
||||
dispose();
|
||||
}
|
||||
dispose();
|
||||
});
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user