Giter VIP home page Giter VIP logo

Comments (4)

leftaroundabout avatar leftaroundabout commented on May 26, 2024

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!

crawl-scrolling

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.

redneb avatar redneb commented on May 26, 2024

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.

leftaroundabout avatar leftaroundabout commented on May 26, 2024

Fine, here you go then. (Please test it, I don't have a mouse with middle button to do so...)

from dynamic-plot.

redneb avatar redneb commented on May 26, 2024

Thanks, it works fine.

from dynamic-plot.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.