Repository navigation
Implement an option to avoid calling the pan trigger before end of dragging - #1255
Wallaby1999 wants to merge 1 commit into
Conversation
|
Please correct me if I'm mis-understanding something, but couldn't you simply not listen for the event? Or if unbinding is inconvenient, add an |
|
Background is, that I want to reload data dynamically from remote RRD files when the graph is panned. Maybe I missed something, but I did not find a possibly to achieve this without adapting the plugin itself. Outside of the plugin I am not able to see if |
|
Okay, I see what you're trying to do. I'd rather not introduce new options unless they're really necessary, and in this case I think there's a simple alternative: add a flag to the final call args, like this: plot.pan({
left: prevPageX - e.pageX,
top: prevPageY - e.pageY,
end: true
});You should then be able to check this in your listener. If you submit this patch to 0.9-work, I'll merge it right away. |
|
As I do not know how to change this pull request I created a new one: #1258 |
If navigate plugin is used with pan functionality and data needs to be reloaded, it may be usefull to avoid calling the pan trigger during dragging.
This can help to avoid constantsly reloading data during dragging and instead just reload data, when dragging has been finished.