We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d0fe5 commit 3f4c963Copy full SHA for 3f4c963
content_scripts/link_hints.coffee
@@ -388,9 +388,8 @@ class LinkHintsMode
388
installKeyboardBlocker = (startKeyboardBlocker) ->
389
if linkMatched.isLocalMarker
390
{top: viewportTop, left: viewportLeft} = DomUtils.getViewportTopLeft()
391
- for rect in (Rect.copy rect for rect in clickEl.getClientRects())
392
- extend rect, top: rect.top + viewportTop, left: rect.left + viewportLeft
393
- flashEl = DomUtils.addFlashRect rect
+ for rect in clickEl.getClientRects()
+ flashEl = DomUtils.addFlashRect Rect.translate rect, viewportLeft, viewportTop
394
do (flashEl) -> HintCoordinator.onExit.push -> DomUtils.removeElement flashEl
395
396
if windowIsFocused()
0 commit comments