From 6d077b775d1f750989ef11b4eabd57f906e897eb Mon Sep 17 00:00:00 2001 From: Deep Tailor Date: Mon, 8 Jan 2018 09:20:06 -0800 Subject: [PATCH] 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. --- platform/commonUI/inspect/src/services/InfoService.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/commonUI/inspect/src/services/InfoService.js b/platform/commonUI/inspect/src/services/InfoService.js index 7bca1d4cd7..5e8fc9c931 100644 --- a/platform/commonUI/inspect/src/services/InfoService.js +++ b/platform/commonUI/inspect/src/services/InfoService.js @@ -65,6 +65,10 @@ define( options = Object.create(OPTIONS); 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, // so position it differently (toward the bottom) if (this.agentService.isPhone()) {