Skip to content

Plottable H and V Span draglimits while drag fixed size #586

@Ichibot200

Description

@Ichibot200

When a plottable H- or VSpan is set up and it is configured to be a DragFixedSize span, and dragLimitLower and/or dragLimitUpper are set, the span can exit those limits while dragging.
Currently, if I drag on the 2nd edge the 1st edge can get lower than the dragLimitLower value and the same opposite with the 1st edge dragging.
I believe this is not the kind of reaction one would expect.

I believe this part:
https://github.com/swharden/ScottPlot/blob/0fb684146dceb2c4963c9b2289ba9e8494d160df/src/ScottPlot/plottables/PlottableHSpan.cs#L95-L120

should check for boolean:
https://github.com/swharden/ScottPlot/blob/0fb684146dceb2c4963c9b2289ba9e8494d160df/src/ScottPlot/plottables/PlottableHSpan.cs#L71

And adapt to dragLimitLower and dragLimitUpper values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions