richsmith / sexytopo

The SexyTopo cave surveying app for Android
GNU General Public License v3.0
30 stars 13 forks source link

Only set graph viewLocation on creation #142

Closed danielworkman closed 3 years ago

danielworkman commented 3 years ago

Previously setViewLocation() was being called every time we switched between the Plan and Elevation graph views. When sketching underground it is typical to frequently flip between these two modes and having it constantly snap to the active station loses the position where the user is trying to sketch. Therefore we now only set the view location during graph creation. This change is compatible with the "Jump" functionality from the table view as the graph gets recreated in this case.

This is unrelated to, and does not affect, the "Auto-Recentre" feature as this performs its action on the addition of new survey stations only.