Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
[fix] prevent default in drag started event
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Aug 27, 2019
1 parent ef85b8b commit c31efee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map/handlers/drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default class Drag {
* @param {Node} node
*/
private started(node: Node) {
d3.event.sourceEvent.preventDefault();

this.orientation = this.map.nodes.getOrientation(node);
this.descendants = this.map.nodes.getDescendants(node);

Expand Down

0 comments on commit c31efee

Please sign in to comment.