niivue / niivue-vscode

NiiVue extension for vscode + standalone web app
https://niivue.github.io/niivue-vscode/
MIT License
24 stars 7 forks source link

Scroll single slices by default with mouse wheel #60

Closed korbinian90 closed 5 months ago

korbinian90 commented 5 months ago

Currently it always scrolls 2 slices This seems to working in niivue, however, in niivue-vscode the scroll wheel handler (sliceScroll2D) is always called in multiples of 2 -> This is called twice in Image loading: this.canvas.addEventListener('wheel', this.wheelListener.bind(this))

korbinian90 commented 5 months ago

This is solved in v2.0.10 nv could be attached to the canvas more than once