Comments (7)
@blcarson Dont' know if you know, but the latest version of Sketch now has this functionality built in and it works great. On the mac it's Function + arrow (left or right)
from sketch-artboard.
Haven't found a way to do this myself. Resorted to resizing my window so that on artboard switch it ended up zooming to 100%
from sketch-artboard.
@ntgxtreme @blcarson I had the same issue, when going to the next Artboard it would "Zoom to Fit" the Artboard. I was able to make a small edit to the code so if your viewing at 100% and go to the next Artboard, it would stay at 100% (no zooming to fit). The only issue is if your zoomed in and your Artboard is larger then the view port width, then it reverts back to "Zoom to Fit". This is usually never the case for me as I usually switch Artboards at 100% view or even less sometimes.
I changed line 93 from:
var newZoomValue = viewportWidth / newWidth;
to
var newZoomValue = [doc zoomValue];
Basically keeps the zoom view as is, instead of assigning a new one. I'm not sure if this is @kenmoore intention, but I find it makes this plugin 1000x more useful.
from sketch-artboard.
mhm i made the change as suggested by @dropcapdreams but that makes the artboard stick to the top of the viewport, also not ideal.
basicly we dont want it to deal with zooming at all just switch to the next artboard and do whatever cmd + 3 would do in one step am i right?
from sketch-artboard.
I made another edit but forgot to mention it here sorry!
You need to change line 93 AND 94 from:
var newZoomValue = viewportWidth / newWidth;
var newY = Math.max([nextArtboardRect y], [nextArtboardRect y] - ([currentArtboardRect y] + scrollOrigin.y / zoomValue));
TO
var newZoomValue = [doc zoomValue];
var newY = Math.max([nextArtboardRect y] - ([currentArtboardRect y] + scrollOrigin.y / zoomValue));
After doing this, this will not only prevent the document to zoom to 100% width but also keep the exact view position. I use it all the time, love it.
from sketch-artboard.
@dropcapdreams that worked perfect, thank you!
from sketch-artboard.
Did not - thanks for the heads up!
from sketch-artboard.
Related Issues (13)
- Remove transition animation? HOT 1
- Next / Previous Artboard On Unfocused Window HOT 2
- Switch Next/Previous functionality HOT 3
- Deselect All HOT 3
- Overlap makes plugin stop cycling HOT 8
- Plugin stopped working since Sketch dropped Legacy Plugin support HOT 3
- Leave zooming to user HOT 1
- Support Sketch 45 plugin update system
- Change shortcut HOT 1
- Message indicators of the last and first artboard HOT 1
- Shortcuts to next/prev artboards do not work, zoom level altered after running through menu
- Leave the artboard title in view.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sketch-artboard.