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

#90 fix not worked enableBodyScroll in some conditions #91

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

An-Cu
Copy link
Contributor

@An-Cu An-Cu commented Jan 28, 2019

here is commit to fix issue #90

locks = [];
} else {
locks = locks.filter(lock => lock.targetElement !== targetElement);
}

if (!locks.length) {
restoreOverflowSetting();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to run this for even ios devices?

Copy link
Contributor Author

@An-Cu An-Cu Jun 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@willmcpo I don't tested changes on iOS.
Anyway the same issue can appear on any device, so I assume that this change is required for iOS devices too.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@An-Cu
Copy link
Contributor Author

An-Cu commented Jun 17, 2019

I can change condition and check if overflow hidden was set and only then invoke restoreOverflowSetting. But moving restoreOverflowSetting to condition above is bad idea, because then code will be more complicated and unreadable through adding same piece of code inside else and else if blocks.( WET vs. DRY principle)

@willmcpo
Copy link
Owner

willmcpo commented Jun 17, 2019 via email

@An-Cu
Copy link
Contributor Author

An-Cu commented Jun 17, 2019

Ok it seems good for me.
Sorry for misunderstanding.

I will add commit on Wednesday.

@An-Cu
Copy link
Contributor Author

An-Cu commented Jun 27, 2019

@willmcpo I updated pull-request.

@willmcpo willmcpo merged commit f31fa4b into willmcpo:master Jun 27, 2019
@willmcpo
Copy link
Owner

thanks for the fix @An-Cu

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.

None yet

2 participants