loleaflet/src/layer/AnnotationManager.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
New commits: commit 78fd7f6ffd32d59eca6ac978dec20313649594d4 Author: Pranav Kant <pran...@collabora.co.uk> Date: Wed Apr 19 19:39:55 2017 +0530 loleaflet: Select change tracking comments; hidden overlay Make this overlay interactive, but we don't want to color this overlay since LO core already colors redlines in tiles for us. Change-Id: I46077f5b6a28cdd492325b8ab3014fb25ecd94ec diff --git a/loleaflet/src/layer/AnnotationManager.js b/loleaflet/src/layer/AnnotationManager.js index b3f2d74c..fc7d077c 100644 --- a/loleaflet/src/layer/AnnotationManager.js +++ b/loleaflet/src/layer/AnnotationManager.js @@ -80,12 +80,13 @@ L.AnnotationManager = L.Class.extend({ color = viewId >= 0 ? L.LOUtil.rgbToHex(this._map.getViewColor(viewId)) : '#43ACE8'; if (rectangles.length > 0) { redline.textSelected = L.polygon(rectangles, { - pointerEvents: 'none', - fillColor: color, - fillOpacity: 0.25, - weight: 2, - opacity: 0.25 + interactive: true, + fillOpacity: 0, + opacity: 0 }); + redline.textSelected.on('click', function() { + this.selectById(redline.id); + }, this); } }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits