Skip to content

Conversation

megabulk
Copy link

For some reason, your code returns NaN sometimes: I've got 2 images, one visible at >768px, one visible at <=768px. When resizing the window, at least in Safari, the calculated w and h are both 0, and the image map coords are all NaN. This fixes that problem.

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.

1 participant