Commit ecc48961 authored by David Schnur's avatar David Schnur

Merge pull request #1258 from MHWallaby/0.9-work

 Pan trigger extended to contain information if the dragging has ended or not
parents 0b031061 ba4de812
......@@ -139,7 +139,8 @@ can set the default in the options.
panTimeout = setTimeout(function() {
plot.pan({ left: prevPageX - e.pageX,
top: prevPageY - e.pageY });
top: prevPageY - e.pageY,
dragEnded: false });
prevPageX = e.pageX;
prevPageY = e.pageY;
......@@ -155,7 +156,8 @@ can set the default in the options.
plot.getPlaceholder().css("cursor", prevCursor);
plot.pan({ left: prevPageX - e.pageX,
top: prevPageY - e.pageY });
top: prevPageY - e.pageY,
dragEnded: true });
}
function bindEvents(plot, eventHolder) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment