Select curve only, when clicked near curve.

Authored by Murmele on May 4 2019, 8:25 AM.

Description

Select curve only, when clicked near curve.

The current behavior is, that when you click into a cartesianPlot with a curve, it is not possible to call the contextmenu of the cartesianPlot or select a curve, which is behind the most in front curve, because the clicks and mouse hovers gets the most in front object and for a curve the complete boundingrect will be used. With this patch it will be looked, if the mousecursor is near to the curve points and only a action on the curve will occur, when the distance to the curve is lower than a factor.

Differential Revision: https://phabricator.kde.org/D17731

Details

Committed
asemkeMay 4 2019, 8:25 AM
Differential Revision
D17731: Select curve only, when clicked near curve
Parents
R262:a1108204bf6c: Disable autoscale when zooming.
Branches
Unknown
Tags
Unknown