Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: move selection (#2832)

lumixb4205ff9f865
diff --git a/packages/sheets-ui/src/services/selection/selection-shape-extension.ts b/packages/sheets-ui/src/services/selection/selection-shape-extension.ts
index 59fc9fd83e..894cfdb598 100644
--- a/packages/sheets-ui/src/services/selection/selection-shape-extension.ts
+++ b/packages/sheets-ui/src/services/selection/selection-shape-extension.ts
@@ -158,7 +158,7 @@ export class SelectionShapeExtension {
const { leftControl, rightControl, topControl, bottomControl } = this._control;
[leftControl, rightControl, topControl, bottomControl].forEach((control) => {
- control.onPointerDown$.subscribeEvent(() => {
+ control.onPointerEnter$.subscribeEvent(() => {
const permissionCheck = this._injector.get(ISheetSelectionRenderService, Quantity.OPTIONAL)
?.interceptor.fetchThroughInterceptors(RANGE_MOVE_PERMISSION_CHECK)(false, null);
if (permissionCheck === false) {