[DE PE SSE] Fix tip position for desktop app

This commit is contained in:
JuliaSvinareva 2022-08-17 21:06:56 +03:00
parent a9a8d18b62
commit 39f5ce8539

View file

@ -112,10 +112,15 @@
if (!me.options.keepvisible && !me.options.hideonclick && me.tip().is(':visible'))
me.hide();
}});
Common.NotificationCenter.on('app:ready', function (mode) {
me.isDesktopApp = mode.isDesktopApp;
});
},
mousemove: function (e) {
this.targetXY = [e.clientX*Common.Utils.zoom(), e.clientY*Common.Utils.zoom()];
var x = e.clientX*Common.Utils.zoom(),
y = e.clientY*Common.Utils.zoom();
this.targetXY = [x, this.isDesktopApp ? Math.max(y, 14) : y];
},
leave: function(obj) {