回答編集履歴
1
上下移動や虫眼鏡のドラッグ中は探さないように
answer
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
# hoverイベント
|
40
40
|
def hover(event):
|
41
41
|
vis = annot.get_visible()
|
42
|
-
if event.inaxes == ax:
|
42
|
+
if event.inaxes == ax and event.button is None: # 上下移動や虫眼鏡のドラッグ中は探さない
|
43
43
|
cont, ind = sc.contains(event)
|
44
44
|
if cont:
|
45
45
|
update_annot(ind)
|