From e6ca71e77d6f4eaafff7b1114ef70c37f993f37b Mon Sep 17 00:00:00 2001 From: jeylau <30733203+jeylau@users.noreply.github.com> Date: Fri, 5 Jun 2020 16:51:57 +0200 Subject: [PATCH] Minor fix --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 78f9d7c..4cd171a 100644 --- a/app.py +++ b/app.py @@ -144,7 +144,7 @@ def update_image(clickData, relayoutData, click_n, click_p, click_c, slider_val, elif 'autorange' in key: view.fig.update_xaxes(autorange=True) view.fig.update_yaxes(autorange='reversed') - n_bpt = view.options.index(option) if option in view.options else 0 + n_bpt = view.options.index(option) if button_id != 'slider' and 'relayout' not in event: n_bpt += 1 new_option = view.options[min(len(view.options) - 1, n_bpt)]