Code Monkey home page Code Monkey logo

Comments (11)

hainm avatar hainm commented on May 18, 2024

I think you just accidentally turned off?

from ngl.

arose avatar arose commented on May 18, 2024

You mean a method to call? There is

stage.viewer.centerView( zoom, position )

where zoom can be true for automatic zooming (tries to fill the screen) or a number and position is a THREE.Vector3 object in "model space".

from ngl.

arose avatar arose commented on May 18, 2024

I think you just accidentally turned off?

With the latest commits? Hmm, works for me.

from ngl.

hainm avatar hainm commented on May 18, 2024

sorry not to be clear. I can not use mouse wheel to zoom in http://arose.github.io/ngl/

(and with jupyter notebook too)

With the latest commits?

I am not sure if when. I can use zoom with mouse wheel few day ago.

from ngl.

arose avatar arose commented on May 18, 2024

Strange, it works for me on Ubuntu with Chrome 46 and Firefox 42 and 43.

from ngl.

hainm avatar hainm commented on May 18, 2024

I can zoom in/out with 'pv': https://biasmv.github.io/pv/demo.html with my chrome (Version 27.0.1453.110).

from ngl.

arose avatar arose commented on May 18, 2024

Are there any messages in the browser console? I assume it did it work before, or not?

from ngl.

hainm avatar hainm commented on May 18, 2024

Are there any messages in the browser console?

Nope

I assume it did it work before, or not?

Yes, it did work before and I liked it since it has zoom direction similar to VMD.

from ngl.

hainm avatar hainm commented on May 18, 2024

I am not sure what happens (or what you did), but I am able too use zoom in/out now.

from ngl.

hainm avatar hainm commented on May 18, 2024

@arose can you double-check the difference between ngl and nglview for ngl.js file?

I can zoom in/out by mouse wheel in http://arose.github.io/ngl/

but can not do that in jupyter notebook: I need to press middle button and move mouse forward/backward to zoom.

from ngl.

hainm avatar hainm commented on May 18, 2024

never mind, perhaps because of my old Chrome in linux. Works fine when tunneling from linux to be used in my windows.

from ngl.

Related Issues (20)

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.