Comments (4)
I actually designed the zoom/scroll behaviour deliberately so this wouldn't be necessary. Scrolling out does not zoom around the mouse but around the opposite focal point, so you can quite easily “crawl along” by zooming out an in again near a screen edge. Especially for larger distances, this is more effecient than click-and-move, because the zooming gives you exponential step size. After some experience with this, I regularly wish Google Maps had this behaviour too!
That said... I'm not altogether happy with the navigation features yet, either. In particular, the zooming messes up the aspect ratio, which is certainly a problem in many applications.
'll consider some changes. But I don't think I'd like grab&drag panning, also because it fix-assigns mouse clicks to a built-in feature. I'd like to keep clicks completely free so one can use them to e.g. drag around objects dynamically, at some point.
from dynamic-plot.
Scrolling out does not zoom around the mouse but around the opposite focal point, so you can quite easily “crawl along” by zooming out an in again near a screen edge.
I did notice that and it's useful sometimes, but I would still prefer the google maps behavior for some situations.
But I don't think I'd like grab&drag panning, also because it fix-assigns mouse clicks to a built-in feature. I'd like to keep clicks completely free so one can use them to e.g. drag around objects dynamically, at some point.
That can be addressed by introducing different modes for mouse clicks. Or better yet, you could use middle click dragging for panning. This is what GIMP and inkscape do.
from dynamic-plot.
Fine, here you go then. (Please test it, I don't have a mouse with middle button to do so...)
from dynamic-plot.
Thanks, it works fine.
from dynamic-plot.
Related Issues (3)
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 dynamic-plot.