mirror of
https://github.com/nasa/openmct.git
synced 2025-05-31 14:40:48 +00:00
fixes issue #1830
add offsetX to popupService instance in infoService, to prevent bubble from appearing under the mouse pointer, which causes interminent calls to the callback.
This commit is contained in:
parent
144437a06e
commit
6d077b775d
@ -65,6 +65,10 @@ define(
|
|||||||
options = Object.create(OPTIONS);
|
options = Object.create(OPTIONS);
|
||||||
options.marginX = -bubbleSpaceLR;
|
options.marginX = -bubbleSpaceLR;
|
||||||
|
|
||||||
|
// prevent bubble from appearing right under pointer,
|
||||||
|
// which causes hover callback to be called multiple times
|
||||||
|
options.offsetX = 1;
|
||||||
|
|
||||||
// On a phone, bubble takes up more screen real estate,
|
// On a phone, bubble takes up more screen real estate,
|
||||||
// so position it differently (toward the bottom)
|
// so position it differently (toward the bottom)
|
||||||
if (this.agentService.isPhone()) {
|
if (this.agentService.isPhone()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user