Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark partially visible when center is visible #40

Merged
merged 1 commit into from
Jul 20, 2016

Conversation

bramschulting
Copy link
Contributor

This change marks an element as partially visible when just the center is visible, in addition to one of the sides being visible.

I've also added comments to make the code a bit easier to understand.

Right now, these two scenarios are marked as partially visible:

artboard 1

artboard 1 copy

And when this PR is merged, this will be marked as visible too:

artboard 1 copy 2

Note: the logic to determine whether an element is vertically partially visible already works this way.

@jelmerkoppelmans
Copy link

👍

@joshwnj
Copy link
Owner

joshwnj commented Jul 20, 2016

Nice, thanks @bramschulting

@joshwnj joshwnj merged commit 3bd1a0f into joshwnj:master Jul 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants