Dragging the selection plugin #565

Open
dnschnur opened this Issue Sep 28, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@dnschnur
Member

dnschnur commented Sep 28, 2012

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

This comment has been minimized.

Show comment
Hide comment
@dnschnur

dnschnur Sep 28, 2012

Member

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

Member

dnschnur commented Sep 28, 2012

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