Created
May 31, 2021 11:51
-
-
Save Chandankkrr/8ccca067625ca2441fd18ee4778e07eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.nextjs = { | |
updateCursor: function (connectionId, x, y) { | |
const el = document.getElementById(connectionId); | |
if (el) { | |
el.style.transform = `translate3d(${x}px, ${y}px, 0px)`; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment