Closed ichaus-we closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
Attention: 16 lines
in your changes are missing coverage. Please review.
Comparison is base (
7164e6b
) 48.09% compared to head (27a078b
) 48.07%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This commit adds a user-definable predicate for panning to the Zoomer plugin.
It allows to replace the default predicate (middle mouse button) to something else, like it was possible with the now removed Panner plugin.
Sample code:
zoomer.setPanMouseFilter(event -> MouseEventsHelper.isOnlyPrimaryButtonDown(event) && MouseEventsHelper.isOnlyCtrlModifierDown(event));
This is demonstrated in a new chart in the ZoomerSample.