InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

Is it possible to modify mouse event handlers?

Open
#269 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
624
Forks
83
PR merge metrics
No merged PRs in 30d

Description

So I have a large object - a sphere with a radius 900 and spherical dents on it of radius 0.001. There are two issues for me all related to mouse event handling: click+move, double click to move closer to the object.

Here is how it looks (when looking on 200 - its ok, yet on 0.7 camera movements an orientation is a problem):
![webItkBad](https://user-images.githubusercontent.com/2915361/73139459-445a1500-407f-11ea-8278-141bb5ea644b.gif)

Here how it looks in MeshLab (desired behaviour, double click to shorten the distance to a target object divided by two, moves smoothly when zoomed in)
![MeshLab](https://user-images.githubusercontent.com/2915361/73139488-7d928500-407f-11ea-98ee-df39ec37437b.gif)

Object file: [SFM_0.stl.txt](https://github.com/InsightSoftwareConsortium/itkwidgets/files/4113830/SFM_0.stl.txt) please rename to `.stl`

So are there any options to fix mouse behaviour when zoomed into 0.01 distances (zoom, movement)? Are there any JS code modifiers that could be passed to itkwidgets `Viewer` from python?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.