React-diagrams: Zooming really slow?

Created on 8 Jan 2020  路  4Comments  路  Source: projectstorm/react-diagrams

First off, great project!

I've noticed that the zooming functionality is really slow in Firefox -- that is, the zoom-levels per scroll is really small, actual rendering is snappy. I'm not quite sure what's going on, but it makes it basically impossible to zoom in/out sufficiently.

Chrome is unaffected.

bug duplicate

Most helpful comment

I think this (and #360) may be solved by adding a zoomStep option to ZoomCanvasAction.

The changes would look something like this: https://github.com/projectstorm/react-diagrams/compare/master...renato-bohler:zoom-step

With this code, it is possible to adjust sensitivity (by increasing/decreasing zoomStep) and zoom across browsers feels similar:

zoom between Chrome and Firefox

What do you think @dylanvorster? Is this worth a PR or something?

All 4 comments

I think this (and #360) may be solved by adding a zoomStep option to ZoomCanvasAction.

The changes would look something like this: https://github.com/projectstorm/react-diagrams/compare/master...renato-bohler:zoom-step

With this code, it is possible to adjust sensitivity (by increasing/decreasing zoomStep) and zoom across browsers feels similar:

zoom between Chrome and Firefox

What do you think @dylanvorster? Is this worth a PR or something?

Looks great! My earlier search didn't turn up #360, thanks so much for your responsiveness!

I wonder if it's possible to auto-detect the zoom settings?

I am closing the ticket as duplicate of #360 . Can you keep on commenting there please?

Was this page helpful?
0 / 5 - 0 ratings