Fix - Support for draggable plottables on AxisIndex 0 and 1#1556
Fix - Support for draggable plottables on AxisIndex 0 and 1#1556swharden merged 11 commits intoScottPlot:masterfrom
AxisIndex 0 and 1#1556Conversation
- Former behavior only worked for `AxisIndex` 0
This reverts commit 21c4f2d.
Previously only primary (index 0) and secondary (index 1) axes were supported by GetDraggableUnderMouse(). This commit supports all possible axes.
Previously mouse intersections were computed for all draggables whether DragEnabled was true or false. This change only checks enabled draggables for mouse intersections, increasing MouseMove performance for plots with disabled draggables.
Previously only primary (index 0) and secondary (index 1) axes were supported. This commit supports all possible axes.
|
I have to put this down for tonight but I can pick it up in the morning. It's really close to working properly now, but the horizontal line on third axis still isn't properly draggable. I think it's because its snap height is being calculated improperly 🤔 If you figure it out before I get to it next, feel free to commit a fix! Otherwise I'll pick it up in the morning 👍 |
It's funny, I feel its working properly on my side. Can you elaborate the wrong behavior ? EDIT I see what you mean now ^^ |
|
@swharden just fixed the snapped distance. |


AxisIndex0This PR is related to the discussion on #1545
There is still work to generalize this to other axis indexes, but I don't know to reach other axes at the moment.