Commit e48d0662 authored by Michael Hausl's avatar Michael Hausl

Pan trigger extended to contain information if the dragging has ended or

not
parent 0b031061
......@@ -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