mirror of
https://gitee.com/antv/g6.git
synced 2024-11-29 18:28:19 +08:00
fix plugin.behaviour.analysis panCanvas bug
This commit is contained in:
parent
af32c4d4de
commit
1d246296f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user