Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug with Chrome 73 + VictoryZoomContainer Zoom #1272

Closed
4 tasks done
goldo opened this issue Mar 13, 2019 · 7 comments · Fixed by #1362
Closed
4 tasks done

bug with Chrome 73 + VictoryZoomContainer Zoom #1272

goldo opened this issue Mar 13, 2019 · 7 comments · Fixed by #1362
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior

Comments

@goldo
Copy link

goldo commented Mar 13, 2019

Bug

Checklist

  • This is not a victory-native specific issue. (Issues that only appear in victory-native should be opened here)

  • I have read through the FAQ and Guides before asking a question

  • I am using the latest version of Victory

  • I've searched open issues to make sure I'm not opening a duplicate issue

The Problem

With Chrome 73, when you want to zoom in/out your VictoryChart with a VictoryZoomContainer, the page scrolls down/up in the same time and you should see this in the console:

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312

With the recent chrome 73 version, there is a breaking changing in the zoom handling.
More details here: https://developers.google.com/web/updates/2019/02/scrolling-intervention

Reproduction

@boygirl
Copy link
Contributor

boygirl commented Mar 15, 2019

@goldo thanks for this issue and related information. I'll take a look as soon as I can

@AlexanderSergeev
Copy link

Also waiting for the fix

@sebimarkgraf
Copy link

Took a quick look at this and found the following:

Therefore the events need to be registered manually and passed {passive: false}.
I will prepare a short PR and link it here.

@sebimarkgraf
Copy link

Tried to fix it here: https://github.com/Sintifo/victory/tree/fix/chrome-passive-scroll
But that way the zoom really seems laggy in the demos.

Maybe someone with more knowledge in svg event handling can take a look.

@mrdavey
Copy link

mrdavey commented May 6, 2019

There's an interesting discussion going over at React about Chrome's breaking changes. There is also a temporary fix posted here: facebook/react#14856 (comment)

I've tried it with VictoryZoomContainer and it works as it should.

@chepelevdi
Copy link

There's an interesting discussion going over at React about Chrome's breaking changes. There is also a temporary fix posted here: facebook/react#14856 (comment)

I've tried it with VictoryZoomContainer and it works as it should.

Thanks a lot

@boygirl boygirl added Type: Bug 🐛 Oh no! A bug or unintentional behavior verified labels May 6, 2019
@sebimarkgraf
Copy link

There's an interesting discussion going over at React about Chrome's breaking changes. There is also a temporary fix posted here: facebook/react#14856 (comment)

I've tried it with VictoryZoomContainer and it works as it should.

Thank you very much for the temporary fix. Works really well with victory.
This would mean there is no need for victory to fix this until react decided on a way they want to handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants