From e01bc40a78c1352a7883306ad9e054540cb0df26 Mon Sep 17 00:00:00 2001 From: Matthew Dapena-Tretter Date: Thu, 23 Mar 2017 10:55:31 -0700 Subject: [PATCH] "affordance" -> "hoverMargin" --- src/dock.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dock.js b/src/dock.js index a67ad3ab9..0908d8311 100644 --- a/src/dock.js +++ b/src/dock.js @@ -289,17 +289,17 @@ module.exports = class Dock { // The area used when detecting "leave" events is actually larger than when detecting entrances. if (includeButtonWidth) { - const affordance = 20 + const hoverMargin = 20 const toggleButtonSize = 50 / 2 // This needs to match the value in the CSS. switch (this.location) { case 'right': - bounds.left -= toggleButtonSize + affordance + bounds.left -= toggleButtonSize + hoverMargin break case 'bottom': - bounds.top -= toggleButtonSize + affordance + bounds.top -= toggleButtonSize + hoverMargin break case 'left': - bounds.right += toggleButtonSize + affordance + bounds.right += toggleButtonSize + hoverMargin break } }