humanitiesplusdesign / palladio

An application that brings humanities research methods to data visualization.
BSD 3-Clause "New" or "Revised" License
170 stars 31 forks source link

Slow down acceleration of zoom on leaflet map #103

Open cncoleman opened 8 years ago

cncoleman commented 8 years ago

If it is not possible to manage the acceleration, perhaps we can restrict the zoom so that it never extends so far out to duplicate land masses--clipping the zoom action at one end, at least. Currently, the experience is just too disruptive.

esjewett commented 8 years ago

I'll restrict the minimum zoom level so that you can't get quite so far zoomed out.

Question: Are you using an Apple Magic Mouse? There seems to be a lot of talk in leaflet forums about this problem in conjunction with that mouse. Using my MBP trackpad and my Logitech bluetooth mouse, I'm not having issues controlling the scroll speed. I can make it go slow or ridiculously fast without too much confusion.

cncoleman commented 8 years ago

I'm aware of magic mouse problem. This is more a content rendering/visualization issue for Sarah. The unwieldiness is one issue, the other is seeing the continents repeated but without data. It's just odd/wrong from a data rendering point of view.

esjewett commented 8 years ago

Continents repeating should no longer be a problem as I've removed the most "zoomed out" option. It should stop now when displaying just a bit over a single width of the globe.

If scroll-based zooming is causing issues for Sarah, can she use the buttons for zooming? (I fixed the button file loading issue in the latest commit, so they should show up in Endangered Languages now.)

esjewett commented 8 years ago

Proposed - disable scroll to zoom on map and graph. Force use of the buttons.