prevent scrolling when hovering over graph
Signed-off-by: Maximilian Vorbrodt <maximilian.vorbrodt@hotmail.com>
This commit is contained in:
@@ -259,6 +259,8 @@ export function DependencyGraph<NodeData, EdgeData>(
|
||||
);
|
||||
}
|
||||
|
||||
container.on('wheel', e => e.preventDefault());
|
||||
|
||||
if (zoom === 'enabled') {
|
||||
enableZoom();
|
||||
} else if (zoom === 'enable-on-click') {
|
||||
|
||||
Reference in New Issue
Block a user