mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 11:48:29 +08:00
Merge pull request #477 from pycodev/master
fix plugin.behaviour.analysis panCanvas bug
This commit is contained in:
commit
1526e79486
@ -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