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:
parent
2e6c2bff23
commit
54461e0e1a
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue