fix plugin.behaviour.analysis panCanvas bug

This commit is contained in:
panyucheng 2018-09-16 16:07:11 +08:00
parent af32c4d4de
commit 1d246296f8

View File

@ -36,6 +36,7 @@ function panCanvas(graph, button = 'left', panBlank = false) {
});
});
graph.behaviourOn('dragstart', () => {
graph.forcePreventAnimate(true);
graph.css({
cursor: '-webkit-grabbing'
});
@ -54,6 +55,7 @@ function panCanvas(graph, button = 'left', panBlank = false) {
graph.css({
cursor: '-webkit-grab'
});
graph.forcePreventAnimate(false);
});
graph.behaviourOn('canvas:mouseleave', () => {
lastPoint = undefined;