mapper icon indicating copy to clipboard operation
mapper copied to clipboard

Drawing path straight segments - abrupt end

Open ollesmaps opened this issue 7 years ago • 6 comments

Steps to reproduce

  1. In the Draw paths mode when drawing straight segments, sometimes path ends unintentionally (I would say every 15th segment ends like this).
  2. Usually after drawing short segments.
  3. Usually when drawing in a fast pace.

This concerns Android only, no problem on PC. I assume the abrupt end of path drawing is caused by confusion with doubleclick.

Configuration

Mapper Version: 0.8.1 Operating System: Android 7.1.1, Samsung S Pen

ollesmaps avatar Nov 15 '18 14:11 ollesmaps

Successfully replicated the bug.

lpechacek avatar Nov 19 '18 10:11 lpechacek

Looks like the above fix works but I'd like to make a more thorough root cause analysis before placing a pull request.

lpechacek avatar Nov 22 '18 12:11 lpechacek

I have not experienced the faulty behaviour any more. Is the code incorporated?

ollesmaps avatar Jun 23 '20 09:06 ollesmaps

Nope, the code change never made it into Mapper. However, I suspect the bug disappeared due to a Qt upgrade. After all, it is Qt which collects the input events and interprets them for the application.

At this point, I suggest closing the ticket and reopening it in case the issue resurfaces. Thanks!

lpechacek avatar Jun 23 '20 12:06 lpechacek

I suggest closing the ticket and reopening it in case the issue resurfaces.

I managed to replicate the bug in the desktop version. It indeed triggers when drawing consecutive straight segments.

Steps to reproduce:

  1. Select a line symbol
  2. Select draw path tool
  3. Steadily click in the drawing pane while moving the cursor only slightly
  4. Mapper creates a polyline while after a certain number of clicks it end the line as if a double click occurred

https://github.com/user-attachments/assets/ca6f0360-93b1-4437-a17e-6a7ff24c5fd7

lpechacek avatar Aug 30 '25 17:08 lpechacek

Okay... what I see is a double click. Which is documented to end the drawing.

dg0yt avatar Aug 30 '25 19:08 dg0yt