Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zoom in/out #25

Closed
hainm opened this issue Nov 24, 2015 · 11 comments
Closed

zoom in/out #25

hainm opened this issue Nov 24, 2015 · 11 comments

Comments

@hainm
Copy link
Contributor

hainm commented Nov 24, 2015

Hi

Does ngl support zoom?

@hainm
Copy link
Contributor Author

hainm commented Nov 24, 2015

I think you just accidentally turned off?

@arose
Copy link
Collaborator

arose commented Nov 24, 2015

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".

@arose
Copy link
Collaborator

arose commented Nov 24, 2015

I think you just accidentally turned off?

With the latest commits? Hmm, works for me.

@hainm
Copy link
Contributor Author

hainm commented Nov 24, 2015

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.

@arose
Copy link
Collaborator

arose commented Nov 24, 2015

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

@hainm
Copy link
Contributor Author

hainm commented Nov 24, 2015

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

@arose
Copy link
Collaborator

arose commented Nov 24, 2015

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

@hainm
Copy link
Contributor Author

hainm commented Nov 24, 2015

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.

@hainm
Copy link
Contributor Author

hainm commented Nov 25, 2015

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

@hainm hainm closed this as completed Nov 25, 2015
@hainm
Copy link
Contributor Author

hainm commented Dec 10, 2015

@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.

@hainm
Copy link
Contributor Author

hainm commented Dec 10, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants