Prevent default wheel action when zooming
This commit is contained in:
@@ -63,6 +63,7 @@ class Renderer extends React.Component {
|
||||
}
|
||||
|
||||
handleWheel(e) {
|
||||
e.preventDefault();
|
||||
const { deltaY } = e;
|
||||
this.zoom *= Math.pow(this.zoomFactor, deltaY);
|
||||
this.zoom = Math.min(this.zoomMax, Math.max(this.zoomMin, this.zoom));
|
||||
|
||||
Reference in New Issue
Block a user