From 1b717c00dbd94aa9e0750ab72ce13f9591c405d4 Mon Sep 17 00:00:00 2001 From: Timofey Goncharov Date: Sat, 21 Mar 2020 18:43:15 +0300 Subject: [PATCH] Fix for scroll and animate. --- src/tilt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tilt.js b/src/tilt.js index 6713793..7633bb2 100644 --- a/src/tilt.js +++ b/src/tilt.js @@ -74,6 +74,7 @@ class Tilt extends Component { } onMouseMove(cb = () => {}, e) { e.persist(); + this.updateElementPosition(); if (this.updateCall !== null) { window.cancelAnimationFrame(this.updateCall);