As shown in #43, inertia is a problem when clicking one of the maps. Here we fix it, triggering a setView on events 'click' and 'dragstart'.
Method _stop is overloaded to react quickly. setView then will only adjust a few pixels.
Unfortunately I don't see how to test the inertia in the tests :disappointed:
In addition, isSynced is completed to support an argument (used in one example).
Also setView is fixed to do not flicker when sync is done only in one direction.
Documentation also includes some complementary information about offset functionality.
File examples/select_syncs.html is added. There you can enable and disable sync between different maps (all the same osm)
As shown in #43, inertia is a problem when clicking one of the maps. Here we fix it, triggering a setView on events 'click' and 'dragstart'. Method _stop is overloaded to react quickly. setView then will only adjust a few pixels.
Unfortunately I don't see how to test the inertia in the tests :disappointed:
In addition, isSynced is completed to support an argument (used in one example). Also setView is fixed to do not flicker when sync is done only in one direction. Documentation also includes some complementary information about offset functionality. File examples/select_syncs.html is added. There you can enable and disable sync between different maps (all the same osm)