umts / pvta-multiplatform

Transit realtime app for mobile devices
Other
6 stars 5 forks source link

Schedule Page Map Single Scroll #397

Closed mboneil10 closed 7 years ago

mboneil10 commented 7 years ago

I click on the schedule page and scroll up. However, instead of scrolling further up on the page, I zoom in on the map (for both mobile and desktop). My work around: Dodge the map and continue scrolling on the screen above it.

Basically, scrolling on this page can't be done in one fluid motion. The way I'd fix this is to shrink the map so it doesn't stretch across the page. Or disable zooming unless the map is touched.

I don't know if this is a personal problem or if other users experience the same pain as I do.

akaplo commented 7 years ago

I've recently begun seeing a solution to this implemented on touch devices: "cooperative scrolling".

Simple as adding gestureHandling: 'cooperative' to each map. This will only affect behavior on touch devices however; desktop is another story.

mboneil10 commented 7 years ago

Yes! @akaplo, that is what we need. Desktop can wait for now.

akaplo commented 7 years ago

On it. I'm going to go with auto instead of cooperative, because our full-page maps (Route Map and Stop Map) don't need this feature. Since this must be set by-page, easier to just enable in on Schedule only.