Skip to content

Commit 1904232

Browse files
committed
Do not show preview for text selection
- fixes regression from commit 0cb0a32 Show drag preview of unselected shapes - steps to reproduce: 1. Open Impress 2. Have textbox with some text 3. double click on a textbox to activate edit mode 4. try to select some word Result: preview of the same textbox appears duplicated on top Expected: no additional preview Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Ia79c020664c68c9ba3091e7b3750333bef26271b
1 parent 4ba2d15 commit 1904232

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

browser/src/canvas/sections/MouseControl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ class MouseControl extends CanvasSectionObject {
377377

378378
// Shows unselected shapes drag preview
379379
private showShapeDragPreview(dragDistance: number[]): void {
380+
// Do not show in edit mode of inner edit engine
381+
if (app.file.textCursor.visible || TextSelections.isActive()) return;
382+
380383
const handles = GraphicSelection.handlesSection;
381384
if (!handles?.sectionProperties?.svg) return;
382385
if (!GraphicSelection.extraInfo?.isDraggable) return;

0 commit comments

Comments
 (0)