question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mousewheel settings not working in safari browser when pinch zoom is performed on touchpad

See original GitHub issue

The mousewheel settings is enabled as per the docs. However, on trackpad pinch action it zooms in or zooms out the page itself.

mousewheel: {
        enabled: true,
        global: true,
        modifiers: ['ctrl', 'meta'],
}

Expected Behavior

touchpad pinch zoom should be captured at the graph level.

Current Behavior

Browser default action is applied.

Possible Solution

No solution at present.

Steps To Reproduce

codesanbox link

Additional Context

NA

Your Environment

  • x6: 1.21.5
  • OS: macOS Big Sur. Version 11.2.3
  • Browser: safari

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
OpportunityLiucommented, Oct 3, 2021

Tried with my windows laptop with a Precision Touchpad in Edge.

image image

When I use pitch gestures, a WheelEvent with ctrlKey: true will be fired (Although I didn’t press ctrl key at that time)

The second event was triggered by a real mouse wheel.

The issue is that the value of deltaY is not read by x6, cause very rapid zoom when use gestures.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use your trackpad or mouse to zoom on Mac - Apple Support
Use your trackpad or mouse to zoom on Mac · On your Mac, choose Apple menu > System Settings, click Accessibility in the...
Read more >
Zoom with CTRL + touchpad mousewheel not working on Linux
Launched Chrome and hit the Ctrl + mousewheel on touchpad (ie two fingers sliding up or down), can observe that the page is...
Read more >
OS X: Pinch to zoom gesture should map to mousewheel with ...
Part 2: Map macOS pinch to zoom gesture to mousewheel with the control key ... Try to pinch to zoom My settings in...
Read more >
Mac OS X zoom in application with mouse wheel - Super User
I made Mac Mouse Fix. It lets you zoom in and out by scrolling while holding the Command (⌘) key. It works just...
Read more >
Mouse wheel is zooming instead of scrolling
Most web browsers and some apps have a feature that lets you zoom in and out by pressing and holding the Ctrl key...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found