-
-
Notifications
You must be signed in to change notification settings - Fork 64
Zoom speed on MacOS #8
Comments
@Kerollmops Zoom speed looks fine on my end. This is probably caused by mouse events behaving slightly different on MacOS. I added a few debug prints on a new For reference, it looks like this on my end after scrolling a few times up and down on one viewport, then the other: PS: Many thanks for helping me debug all these issues 😄
|
Here are the debug logs I get when I just barely move my fingers on my trackpad i.e. no more than a distance of 0.5 cm.
BTW importing files on this specific branch makes the program crash with:
|
Thanks! I can start working with that :)
Oops, I messed up and pushed to the wrong branch. The panic happens because I added a new property to the graph struct. In general, don't expect file compatibility between versions just yet. It's too soon for that since I'm still figuring out exactly what I need to store. But for this particular case, I think I can |
For the record, the panic on deserialization has been fixed in db97e62, since keeping compatibility was easy enough for the new fields I added. |
Thank you, that is a nice project I would like it to go further 😃 Just for correctness, I was not even moving 0.5cm with my fingers on my trackpad but not moving them at all, just rolling them a little bit. That's probably just 0.05 cm. |
As a drive-by suggestion, in the hopes it might be a helpful pointer: This issue has the appearance of a common issue with cross-platform "scroll-wheel" behaviour which occurs due to the difference in use of trackpad vs mouse-wheel for scrolling and the unit of the values returned. It can be seen in the debug logs where the first log shows The issue can also appear when an application is deployed natively vs when deployed in a web browser (and across browser engines). I know
Hope this is helpful. Aside: Discovered Blackjack via your recent Rust GameDev Meetup talk which was enjoyable. I particularly liked how you doubled-down on the carrots in response. :D |
It certainly is! Many thanks 😄
Haha, I'm glad you enjoyed it! Extra carrots is always a safe bet 🥕 |
Just a small improvement would be to reduce the speed of the zoom speed, it is very difficult to be precise as it is very fast to zoom and unzoom.
Originally posted by @Kerollmops in #7 (comment)
The text was updated successfully, but these errors were encountered: