drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Grid jump while zoom

Open TheZooKeeper opened this issue 5 years ago • 7 comments

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

When zooming in and out using ctrl+scroll wheel, the screen position will perform a big jump if ctrl is let up before the scroll wheel is done moving. It is important to note that the jump only occurs if the scroll wheel moves before the grid is finished redrawing.

  • draw.io version 13.9.8

  • OS: Windows 10 Pro 1909

  • Browser Chrome

  • Version 86.0.4240.193

TheZooKeeper avatar Nov 16 '20 15:11 TheZooKeeper

I can confirm this still exists in draw.io version 14.4.3

My guess is that this is related to this place and/or this place in the source code. However, this feels like it could also be a timing issue of some sort and I'm not sure if that can completely be fixed in a reliable manner without major changes (like the order in which the "main loop" checks these conditions probably matters since they take up finite time). Maybe a small fix could be delaying the falling edge of the isZoomWheelEvent a little bit after the ctrl key is released?

Overall -> seems to me like the main problem is that draw.io switches from "let's scroll-zoom" to "let's scroll-translate-over-the-document" too fast so the lack of synchronization between the user's two hands comes into the picture and draw.io scrolls like crazy (the jumps weren't random as far as I could gather, they always tend to happen in the direction of the scrolling when the ctrl key is released)

By the way I'm a complete noob in JS and the experiments I made are not air-tight, so please correct me if anything above is wrong.

sonebu avatar Mar 15 '21 19:03 sonebu

I also have the same problem

lumeche avatar Aug 09 '21 12:08 lumeche

I also find this extremely frustrating as I am constantly working on large documents where I need to zoom out/in all the time. It's one of the key issues with draw.io that impacts my productivity (collectively making it "cheaper" to pay for Visio based on time savings than use draw.io).

thesuavehog avatar Jan 14 '22 13:01 thesuavehog

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Jul 13 '22 14:07 stale[bot]

This issue is NOT stale!

iikuzmychov avatar Jun 11 '23 02:06 iikuzmychov

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

github-actions[bot] avatar Jun 14 '24 11:06 github-actions[bot]

Still not stale

iikuzmychov avatar Jun 14 '24 11:06 iikuzmychov

It seems like this could potentially be related to #212.

ErikSwan avatar Jan 02 '25 19:01 ErikSwan