bumbu/svg-pan-zoom

preventMouseEventsDefault stops working on Chrome 73

Open

#331 opened on Mar 20, 2019

View on GitHub
 (6 comments) (7 reactions) (0 assignees)JavaScript (1,585 stars) (383 forks)batch import
bughelp wanted

Description

Bug report

The option preventMouseEventsDefault disable scroll event, allowing wheel-zoom. With new Chrome 73 version: https://www.chromestatus.com/features/6662647093133312 they change to passive by default.

Expected behaviour

Zoom with mouse wheel without scrolling.

Actual behaviour

Mixed strange behaviour zoom+scroll.

Steps to reproduce the behaviour

  1. With Chrome/Chomium 73, go to demos, and open any.
  2. Resize your browser with a height < lion picture
  3. Use your mouse wheel over the picture

image

Configuration

Contributor guide