epezent / implot

Immediate Mode Plotting
MIT License
4.55k stars 503 forks source link

Make DragPoint/Line/Rect click-through for the right mouse button #483

Open Naseband opened 1 year ago

Naseband commented 1 year ago

I think it would be very helpful if right-click-dragging on DragPoints/Lines/Rectangles would be possible, meaning it should show the region selection rectangle as if you clicked somewhere else on the plot.

Currently, with many of the Drag* elements, it can become tedious to use the selection rectangle in a precise manner. Usually this also opens the context menu, as it opens whenever you release the right mouse button unless you successfully triggered the region selection (which is also a thing that could be changed, but I guess it's related to ImGui itself).

As there is currently no function related to right clicking on them, making them click-through would be a simple solution from what I can see.