-
I want to disable the mouse wheel zoom effect on sigma, and keep the default mouse wheel to scroll functionality. I used to be able to do something like mouseWheelEnabled: false on sigma's settings but I cannot see any similar setting on V3. I can set minCameraRatio: 1 & maxCameraRatio: 1 to effectively disable zoom but the default mouse wheel to scroll functionality is still prevented. I can do something like:
which prevents sigma's zoom in functionality, but again scrolling is disabled. Is there a simple way to prevent the zooming functionality and reinstate scrolling on wheelStage events? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @HectorHS, Good catch, it was not possible to handle this properly with sigma.
|
Beta Was this translation helpful? Give feedback.
Hi @HectorHS,
Good catch, it was not possible to handle this properly with sigma.
I just released sigma v3.0.0, with a fix for this. Basically, sigma stops preventing default mouse-wheel behavior in two different cases:
enableCameraZooming
setting is true (showcased here)minCameraRatio
ormaxCameraRatio
are set, and the user hits the zoom boundaries (I added those settings to the nodes pan story, so that it is testable somewhere)