Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Dragging the selection plugin #565

Open
dnschnur opened this Issue · 1 comment

1 participant

@dnschnur
Owner

Original author: AzeoT...@gmail.com (March 18, 2011 19:21:57)

I have made an enhancement to the selection plugin that allows you to drag an existing selection rectangle. So, rather than having to always select a new area, you can select an existing area and drag it around, maintaining the same size. The code was written rather rapidly, and largely cut from existing code, so probably could be made more efficient, but it does the job. I'm guessing you may want to make this an optional feature.

I also added a simple function to retrieve when the user is creating or dragging the selection (i.e. selection.active). This is useful when doing real time graphs to keep the graph from updating (and thus reset the selection) when the user is doing a selection.

Great product, I hope this helps.

Matt

Original issue: http://code.google.com/p/flot/issues/detail?id=486

@dnschnur
Owner

From olau%iol...@gtempaccount.com on March 21, 2011 14:12:26
Hi! It would help if you could post a diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.