[racket-dev] okay to call init-auto-scrollbars multiple times on a canvas%?
I’m implementing (not-horribly-clunky) zooming for sound waves in rsound, and I like the auto-scrollbars mechanism. One question is what should happen when the user zooms in. I’d like to change the virtual-size. The obvious solution is to call “init-auto-scrollbars” again. This seems to work, but the name “init-auto-scrollbars” gives me pause. Is it okay to call init-auto-scrollbars again on a canvas?
If so, I’ll add a note to the docs.
Many thanks!
John