client/posts: fix hiding notes on interaction

Fixes #108
This commit is contained in:
rr- 2016-11-13 19:10:55 +01:00
parent 81080da06f
commit e21a31e72f

View file

@ -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);