Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
fix: don't prevent default inside a passive listener
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkelov authored and wuweiweiwu committed Jul 25, 2019
1 parent f290cb3 commit b2b6a79
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/react-image-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,6 @@ class ReactImageLightbox extends Component {
*/
handleOuterMousewheel(event) {
// Prevent scrolling of the background
event.preventDefault();
event.stopPropagation();

const xThreshold = WHEEL_MOVE_X_THRESHOLD;
Expand Down Expand Up @@ -658,7 +657,6 @@ class ReactImageLightbox extends Component {
}

handleImageMouseWheel(event) {
event.preventDefault();
const yThreshold = WHEEL_MOVE_Y_THRESHOLD;

if (Math.abs(event.deltaY) >= Math.abs(event.deltaX)) {
Expand Down

0 comments on commit b2b6a79

Please sign in to comment.