diff options
author | Scott Murray <scott.murray@konsulko.com> | 2020-01-03 11:23:36 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2020-01-03 11:30:17 -0500 |
commit | e878fbc2113960975b8488643f493a5f1c48b9e6 (patch) | |
tree | 9d1cf1ce4991cc2b6bd4a016eb0cc7ee7bed50a6 /app/BtnShrink.qml | |
parent | c285683b960ccfadd35f62c74c14871c61e4d24c (diff) |
Further re-center behavior improvementsicefish_8.99.5icefish/8.99.58.99.5
Add logic to enable re-center button when the view is centered but
zoomed in/out, for consistency. Additionally, re-center when
routing is started to improve user experience.
Bug-AGL: SPEC-3081
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ifed6702ee5f1d1db266c612a23fea51661c2a51b
Diffstat (limited to 'app/BtnShrink.qml')
-rw-r--r-- | app/BtnShrink.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/BtnShrink.qml b/app/BtnShrink.qml index da9700e..23859dc 100644 --- a/app/BtnShrink.qml +++ b/app/BtnShrink.qml @@ -8,8 +8,11 @@ Item { height: 100 function zoomDown() { - map.zoomLevel -= 1 + map.zoomLevel -= 1 + if(map.zoomLevel != default_zoom_level) { + btn_present_position.state = "Optional" } + } onClicked: { zoomDown() } |