From 4b931540a6a0baae42376f90937f671d73c90109 Mon Sep 17 00:00:00 2001 From: Michaela McCann Date: Mon, 14 Apr 2014 19:26:24 -0400 Subject: [PATCH 1/2] removed console logs --- dist/shine.js | 1 - lib/shine.shadow.js | 1 - 2 files changed, 2 deletions(-) diff --git a/dist/shine.js b/dist/shine.js index 885da7d..916c698 100644 --- a/dist/shine.js +++ b/dist/shine.js @@ -333,7 +333,6 @@ exports.Shadow.prototype.disableAutoUpdates = function() { * @private Called when DOM event listeners fire */ exports.Shadow.prototype.handleViewportUpdate = function() { - console.log('vp update'); var boundingRect = this.domElement.getBoundingClientRect(); this.position.x = boundingRect.left + boundingRect.width * 0.5; this.position.y = boundingRect.top + boundingRect.height * 0.5; diff --git a/lib/shine.shadow.js b/lib/shine.shadow.js index bbf6c40..ab5e858 100644 --- a/lib/shine.shadow.js +++ b/lib/shine.shadow.js @@ -139,7 +139,6 @@ exports.Shadow.prototype.disableAutoUpdates = function() { * @private Called when DOM event listeners fire */ exports.Shadow.prototype.handleViewportUpdate = function() { - console.log('vp update'); var boundingRect = this.domElement.getBoundingClientRect(); this.position.x = boundingRect.left + boundingRect.width * 0.5; this.position.y = boundingRect.top + boundingRect.height * 0.5; From adab03bac48b602c3d8253c89dfdd2c9c6579779 Mon Sep 17 00:00:00 2001 From: Michaela McCann Date: Mon, 14 Apr 2014 19:55:53 -0400 Subject: [PATCH 2/2] added optional binding to scrollbar instead of cursor --- demos/mouse-follow.html | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/demos/mouse-follow.html b/demos/mouse-follow.html index e6965b1..5cf3055 100644 --- a/demos/mouse-follow.html +++ b/demos/mouse-follow.html @@ -5,22 +5,41 @@ - + -

Shine Mouse-Follow Demo

+

Shine Mouse-Follow Demo