ruler: only handle left mouse event in the tab-stop area

Change-Id: Ifd3fe9f1b532a4dfec250482044bf860caefbd2b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92547
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
Tomaž Vajngerl 2020-04-20 07:31:55 +02:00 committed by Tomaž Vajngerl
parent 2e6c2bff23
commit 54461e0e1a

View file

@ -388,6 +388,10 @@ L.Control.Ruler = L.Control.extend({
_initiateTabstopDrag: function(event) {
// console.log('===> _initiateTabstopDrag ' + event.type);
if (event.button !== 0) {
event.stopPropagation(); // prevent handling of the mother event elsewhere
return;
}
var tabstopContainer = null;
var pointX = null;