oasis-open / cti-stix-visualization

OASIS TC Open Repository: Lightweight visualization for STIX 2.0 objects and relationships
http://oasis-open.github.io/cti-stix-visualization
BSD 3-Clause "New" or "Revised" License
138 stars 43 forks source link

Add drag and zoom to viewing area #3

Closed clenk closed 8 years ago

clenk commented 8 years ago

The mousewheel can be used to zoom in and out, and clicking and dragging on the background will move the graph around to aid in viewing large datasets.

gtback commented 8 years ago

I just realized that this conflicts with when you're trying to manually click and drag a node to move it to a specific location. (Drag should work only when you click on the background)

gtback commented 8 years ago

Also, double-click (which is used to unpin a node) also causes the viewport to zoom in.

b-long commented 8 years ago

I agree with @gtback , this seems to cause a regression . Still, the zoom feature is very nice! 👍

clenk commented 8 years ago

This will be fixed in #5.