Skip to content

Eraser malfunction after System Drag & Drop #43

@NiazSagor

Description

@NiazSagor

After initiating a system drag-and-drop session via view.startDragAndDrop (triggered by a long-press on the DrawingSurface), subsequent touch interactions for the Eraser tool fail to function.
Although the lines are erased from the underlying canvas, the screen still displays them. The strokes_data column for that particular note contains an empty array.

Steps to Reproduce

  1. Open a Note in Cahier and draw several lines using any brush.
  2. Toggle the Eraser mode off (ensure you are in drawing mode).
  3. Long-press on the drawing to initiate the System Drag (the ghost image appears).
  4. Release the drag (the ghost image disappears).
  5. Toggle Eraser mode ON.
  6. Attempt to erase the existing lines.

Actual Result: The lines remain visible on the canvas. The eraser appears "dead" or desynced.

Expected Result: The eraser should function immediately and accurately after the drag session ends.

Screen_recording_20260127_214724.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions