Comments (5)
I think you could just substract scrollTop and scrollLeft from e.pageX and e.pageY here: https://github.com/pakastin/nodegarden/blob/master/scripts/index.js
I get back to this after new year.. Happy 2018!
from nodegarden.
I haven't been able to get that solution to work. I imagine it's an easy fix, but I can't figure it out. Here's my example: https://chillstice.com
from nodegarden.
Should work now after a big update..?
from nodegarden.
Fixed it with window.scrollX
and window.scrollY
:
Lines 22 to 38 in cd91eea
from nodegarden.
That solved it
from nodegarden.
Related Issues (6)
- Make the mouse a really heavy node! HOT 5
- Mouse position broken on retina screen HOT 2
- browser version HOT 4
- Help with my site pls HOT 8
- License? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodegarden.