faheem801 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Add custom panning cursor option to jquery.flot.navigate.js #404

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The existing pan cursor when panning using jquery.flot.navigate.js is the 
"move" cursor.  This can be confusing, especially if your graph is set up to 
pan only on the x-axis.  I had a request to have a "hand" (pointer) cursor 
instead.  

This patch allows you to customize the cursor when panning. If dragCursor is 
not specified it falls back to 'move'. You can specify any cursor as used in a 
CSS cursor: style. 

To use this patch, you need to define the options.pan.dragCursor property, as 
in this example...

var options = {
.
.
.
  pan: {
     interactive: true,
     dragCursor: "pointer"
  }
.
.
.
}

Original issue reported on code.google.com by kelly.t....@gmail.com on 24 Aug 2010 at 11:34

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 403 has been merged into this issue.

Original comment by olau%iol...@gtempaccount.com on 11 Mar 2011 at 12:29

GoogleCodeExporter commented 9 years ago
It's in. I changed the syntax a little bit, took advantage of the default 
option stuff and added the documentation you forgot. :) Thanks!

Original comment by olau%iol...@gtempaccount.com on 11 Mar 2011 at 12:38