Ticket #3329 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

Handler.Path: The drawing starts after a drag

Reported by: jorix Owned by: tschaub
Priority: trivial Milestone: 2.11 Release
Component: Handler.Path Version: 2.11 RC1
Keywords: Cc:
State:

Description

When the drag ends at the same point where it started, the drawing begins. If it was drawing a point is added.

It is very unlikely happen. I found writing the code tests for #3323. The last test of function test_persist_freehand should be:

498: t.ok(feature3.layer == null, "d) feature3 not destroyed");

You can reproduce using "measure distance" on http://openlayers.org/dev/examples/measure.html and start a drag from a corner, and ending on the same corner (taking care of pixels there are only 5 of tolerance ;-)

Change History

in reply to: ↑ description   Changed 2 years ago by jorix

Replying to jorix:

498: t.ok(feature3.layer == null, "d) feature3 not destroyed");

oops! a typo.

Is:

498: t.ok(feature3.layer != null, "d) feature3 not destroyed");

  Changed 2 years ago by jorix

  • status changed from new to closed
  • resolution set to invalid

The description is wrong, better start over (problem with the test ignores pixelTolerance)

Note: See TracTickets for help on using tickets.