Open Bug 1850759 Opened 1 year ago Updated 6 months ago

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

Categories

(Tree Management :: Perfherder, defect)

defect

Tracking

(Not tracked)

People

(Reporter: mstange, Unassigned)

References

Details

(Whiteboard: [fxp])

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.

Whiteboard: [fxp]
You need to log in before you can comment on or make changes to this bug.