skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.66k stars 208 forks source link

Organic Zooming #134

Closed zeltas closed 3 years ago

zeltas commented 3 years ago

Is it possible to have a button that enables/disables Nomnoml panning and zooming features?

I'm using Safari Mac, which already fields these features organically. When working with large data, it appears that both programs try to do the same thing at once, which results in erratic behaviors. For example on the Mac, you can already use the track pad to zoom or pan the content of the browser. And since Nomnoml runs inside a browser, they should not compete at the same task.

skanaar commented 3 years ago

It should be possible to disable the Safari panning/zooming with some <meta> directives. Would you @zeltas have the time to look into this? Pull request as always welcome.

zeltas commented 3 years ago

You can prevent Safari from scaling content in the viewport:

Screen Shot 2020-08-10 at 9 09 16 AM

You can also preset the scaling to normal using a factor of 1:

Screen Shot 2020-08-10 at 9 13 27 AM

You can find more info here, as Safari Mac & iOS operates differently due to size limitations on smaller devices:

Unfortunately, I'm not a web developer, and while I could certainly change values in a html file and reload it in a browser -- that's as far as my web abilities go. But I have managed to disable zoom from System Preference, and for me, I think Nomnoml zooming performs better.

Thanks.

skanaar commented 3 years ago

Excellent. I'll keep this issue open until I have implemented something similar in nomnoml.com :)

zeltas commented 3 years ago

Good luck. I love Nomnoml - simplicity.

skanaar commented 3 years ago

Seems to be difficult to disable pinch-zooming in a reliable way. ๐Ÿ˜ž

zeltas commented 3 years ago

Thatโ€™s quite okay, as long as you can hide/display script view.

Sent from Yahoo Mail for iPhone

On Wednesday, August 26, 2020, 11:07 AM, Daniel Kallin notifications@github.com wrote:

Seems to be difficult to disable pinch-zooming in a reliable way. ๐Ÿ˜ž

โ€” You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.