Drawing path straight segments - abrupt end
Steps to reproduce
- In the Draw paths mode when drawing straight segments, sometimes path ends unintentionally (I would say every 15th segment ends like this).
- Usually after drawing short segments.
- 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
Successfully replicated the bug.
Looks like the above fix works but I'd like to make a more thorough root cause analysis before placing a pull request.
I have not experienced the faulty behaviour any more. Is the code incorporated?
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!
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:
- Select a line symbol
- Select draw path tool
- Steadily click in the drawing pane while moving the cursor only slightly
- 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
Okay... what I see is a double click. Which is documented to end the drawing.