On Wed, 5 Aug 2026 01:39:15 GMT, Nir Lisker <[email protected]> wrote:
>> 1. click: "A button click occurs after these happen" -> "may follow >> MOUSE_RELEASED" to be specific. I recall at some point I thought it was >> press->click->release. >> >> 2. there is no `MOUSE_CLICKED` in your diagram, plus I can't figure out how >> a click can be generated during the drag operation. > >> I can't figure out how a click can be generated during the drag operation. > > Using the test program above, just start a PDR or a full-PDR and release the > mouse over the same node. For PDR I get: > > MOUSE_PRESSED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > DRAG_DETECTED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > MOUSE_DRAGGED PDR > MOUSE_RELEASED PDR > MOUSE_CLICKED PDR > > For full-PDR I get: > > MOUSE_PRESSED FullPDR > MOUSE_DRAGGED FullPDR > MOUSE_DRAGGED FullPDR > MOUSE_DRAGGED FullPDR > MOUSE_DRAGGED FullPDR > MOUSE_DRAGGED FullPDR > DRAG_DETECTED FullPDR > MOUSE_DRAGGED FullPDR > MOUSE-DRAG_ENTERED FullPDR > MOUSE-DRAG_OVER FullPDR > MOUSE_DRAGGED FullPDR > MOUSE-DRAG_OVER FullPDR > MOUSE_DRAGGED FullPDR > MOUSE-DRAG_OVER FullPDR > MOUSE-DRAG_RELEASED FullPDR > MOUSE-DRAG_RELEASED scene > MOUSE-DRAG_DONE FullPDR > MOUSE-DRAG_DONE scene > MOUSE_RELEASED FullPDR > MOUSE_CLICKED FullPDR > MOUSE-DRAG_EXITED FullPDR > 1. "may follow MOUSE_RELEASED" When does it not? > 2. there is no `MOUSE_CLICKED` in your diagram I can add it, but the diagram is for drag-related events. After the mouse release event, the important part is if there's an event for ending the drag. A click event is not part of it. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2238#discussion_r3720292018
