Open Bug 1850759 Opened 9 months ago

Rectangle drag selection gets stuck if the mouse is released outside the graph


(Tree Management :: Perfherder, defect)



(Not tracked)


(Reporter: mstange, Unassigned)


Steps to reproduce:

  1. Go to this perfherder graph.
  2. Start dragging a rectangle in the middle of the graph.
  3. Drag your mouse all the way to the right, leaving the graph area.
  4. Release the mouse button.

Expected results:
When the mouse button is released, the new selection should be committed.
Also, while the mouse is moving outside of the graph, the rectangle should still update.

Actual results:
The mousemove and mouseup outside the graph area are ignored, and the selection is stuck in the selecting mode.

For these types of UIs, the mousemove and mouseup handlers should be set on the window. This will ensure that all events are received even when the mouse leaves the browser window. See this Draggable component in the Firefox profiler for inspiration.

You need to log in before you can comment on or make changes to this bug.