james-tindal / obsidian-mindmap-nextgen

Create mind maps from your obsidian markdown files
MIT License
141 stars 5 forks source link

[Feature Request] Change mindmap zoom behavior #184

Open WilliamStone opened 1 year ago

WilliamStone commented 1 year ago

Hello verocloud!

This mindmap plug is very good to fit my needs, and I use it a lot, but it has an UX issue that brings trouble to me, which is zooming behavior. Currently, when put mouse in mindmap box and turn mouse wheel up or down, the mindmap zooms in or out. I feel this behavior is annoying when I scroll a long document up and down using mouse wheel and accidently pass by a mindmap, because it stops document scrolling and turns to zoom the mindmap. Yes, I found that if I scroll fast enough(continually, no pause on mindmap), the scroll would continue and won't be break, but I do sometimes need to scroll-and-pause to search for something, so this zooming behavior breaks my work and I have to move mouse outside the mindmap box to continue, and maybe I have to restore mindmap zoom level that was accidently changed thus not readable. And I didn't find an option for adjusting this anywhere.

Thus, I propose that we change the hot key for mindmap zooming, from bare mouse wheel up/down to Ctrl/Alt/Shift + mouse wheel up/down. We even can have an option to let each user to configure it themselves. If so the scrolling behavior and mindmap zooming behavior should be independent and won't bother each other. Please consider this feature proposal, thank you!