[DE PE SSE] Fix tip position for desktop app
This commit is contained in:
parent
a9a8d18b62
commit
39f5ce8539
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue