#17545·openlayers

Tracing a polygon may unexpectedly trace the whole polygon

Author: M393Created Jul 3, 2026Updated Jul 3, 2026
Labelsbug

Describe the bug When after placing the first trace point you move the mouse pointer quickly from one side to the other, the trace takes the long way around. This happens with both Draw and Modify tracing.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://openlayers.org/en/latest/examples/draw-modify-trace-snap.html

https://github.com/user-attachments/assets/d1b301b2-59b2-4d78-b75a-ef5f89bee561

Expected behavior A trace all the way around is expected when you move the mouse around the polygon to trace, but a quick movement like that should just change direction of the trace.