mhdhejazi / CoronaTracker

Coronavirus tracker app for iOS & macOS with maps & charts
https://coronatracker.samabox.com/
GNU General Public License v3.0
1.54k stars 288 forks source link

Scrolling issue on Mac #119

Open gklka opened 4 years ago

gklka commented 4 years ago

You can scroll the maps two different ways on Mac Catalyst: either by scrolling (two fingers on touchpad or one finger with Magic Mouse), or by dragging. The first one is butter smooth with this app, but the second one conflicts with some gesture recognizer, because the map doesn't follow the movement of the mouse when you press down and drag the mouse button, but jumps to the final position (or goes even further) when you release the button.

mhdhejazi commented 4 years ago

I wasn't able to reproduce this issue. I tried panning the map by pressing the mouse button and drag and everything works as expected. Can I see how it looks like for you?

gklka commented 4 years ago

As far as I can tell it can be also something which blocks the main thread, because Corona Tracker can produce constant 100% CPU usage on one core when this happens.

gklka commented 4 years ago

Here is a video about it happening: https://share.icloud.com/photos/07XtA8g0IOZdVo0XS1urIloqQ

mhdhejazi commented 4 years ago

Hmm, I tried dragging with two fingers, clicking and dragging on the touchpad and using the mouse, and all work just as expected: https://streamable.com/eb2z8c

I'm not sure frankly what is causing the scrolling issue for you.