We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 055342a commit 3ccee28Copy full SHA for 3ccee28
src/Tree/index.tsx
@@ -165,8 +165,11 @@ class Tree extends React.Component<TreeProps, TreeState> {
165
return true;
166
})
167
.on('zoom', (event: any) => {
168
- if (!this.props.draggable && (event.sourceEvent.type === 'mousemove')) {
169
- return
+ if (
+ !this.props.draggable &&
170
+ (event.sourceEvent.type === 'mousemove' || event.sourceEvent.type === 'touchmove')
171
+ ) {
172
+ return;
173
}
174
175
g.attr('transform', event.transform);
0 commit comments