Arkkimaagi/ArtboardZoom

[Feature Suggestion] Zoom to top of current artboard

rbaud opened this issue · 2 comments

rbaud commented

Hey there, Mikko!

Thanks so much for making this great little plugin. It's pretty close to a "quality of life" feature I've been hunting for, which is a way to quickly jump to the top of the current artboard at 100%/actual pixels.

In my local version, I made a couple of minor changes to your code to add that feature, and I just wanted to share the idea in case you're interested in adding this functionality to the plugin.

Simply, I changed the centerY and targetRect.origin.y calculations on lines on lines 89 and 94 to use the targetRect.origin.y value without modification. Pretty rudimentary, but it does the job!

Thanks for the suggestion. I have been thinking about having some sort of an settings dialog so that you could adjust the percentage and maybe location too. Saving the data should be possible, but I have not looked into it yet further.

+1 ! :)