From e30f267181d990947e67909de4809fa941698c85 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sat, 17 Oct 2015 21:36:38 +0200 Subject: Upgrading openlayers to 3.x --- .../tests/manual/select-feature-right-click.html | 86 ---------------------- 1 file changed, 86 deletions(-) delete mode 100644 misc/openlayers/tests/manual/select-feature-right-click.html (limited to 'misc/openlayers/tests/manual/select-feature-right-click.html') diff --git a/misc/openlayers/tests/manual/select-feature-right-click.html b/misc/openlayers/tests/manual/select-feature-right-click.html deleted file mode 100644 index edd79d6..0000000 --- a/misc/openlayers/tests/manual/select-feature-right-click.html +++ /dev/null @@ -1,86 +0,0 @@ - - - OpenLayers Ticket 3404 - - - - - - - - -
-

Ticket 3404 Test Page

-

This bug is only triggered by physical right mouse clicks so it is not possible to write - an automated js unit test

-

When a SelectFeature control and a Navigation control are added to a map the left-click - mousedown events are stopped by a Drag handler before reaching the Feature handler. However, - right-click mousedown events so pass through and reach the Feature handler.

-

The Feature handler records the xy of - each mousedown and mouseup events so they can be compared in the click event. Because only right-click - mousedown event are received the location of future left-click mouseup events are compared - to the location of the 'stale' right-click mousedown event resulting in the feature not being selected.

-

Steps to recreate the bug: -

    -
  1. Left-click a point to select it.
  2. -
  3. Left-click the map to deselect the point.
  4. -
  5. Left-click a different point to select it.
  6. -
  7. Left-click the map to deselect the second point.
  8. -
  9. Right-click the map then left-click to close the browser context menu.
  10. -
  11. Left-click a point.
  12. -
-

-

Expected: The point is selected.

-
-
-
- - - - -- cgit v1.2.3