From e21a31e72f81a40f35fa12b230f364492e0a99de Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 13 Nov 2016 19:10:55 +0100 Subject: [PATCH] client/posts: fix hiding notes on interaction Fixes #108 --- client/js/controls/post_notes_overlay_control.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/js/controls/post_notes_overlay_control.js b/client/js/controls/post_notes_overlay_control.js index 925aadc6..0ca9efbf 100644 --- a/client/js/controls/post_notes_overlay_control.js +++ b/client/js/controls/post_notes_overlay_control.js @@ -557,6 +557,9 @@ class PostNotesOverlayControl extends events.EventTarget { this._post.notes.addEventListener('remove', e => { this._deleteDomNode(e.detail.note); }); + this._post.notes.addEventListener('add', e => { + this._createPolygonNode(e.detail.note); + }); const keyHandler = e => this._evtCanvasKeyDown(e); document.addEventListener('keydown', keyHandler);