Skip to content

Commit

Permalink
Fix issue where deck.gl blocks wheel scroll over non-interactive area (
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Oct 4, 2023
1 parent 1f4412b commit 13f8ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/src/controllers/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,12 @@ export default abstract class Controller<ControllerState extends IViewState<Cont
if (!this.scrollZoom) {
return false;
}
event.srcEvent.preventDefault();

const pos = this.getCenter(event);
if (!this.isPointInBounds(pos, event)) {
return false;
}
event.srcEvent.preventDefault();

const {speed = 0.01, smooth = false} = this.scrollZoom === true ? {} : this.scrollZoom;
const {delta} = event;
Expand Down

0 comments on commit 13f8ab3

Please sign in to comment.