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

fix(FEC-10811): floating show two bottom bar for second #599

Merged
merged 5 commits into from
May 12, 2021
Merged

Conversation

Yuvalke
Copy link
Contributor

@Yuvalke Yuvalke commented May 9, 2021

Description of the Changes

Issue: the first event of resize/scroll isn't taken into account only the last one in the sequence.
Solution: trigger the function on the leading edge instead of the trail.

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

Issue: first event of resize/scroll doesn't take into account.
Solution: trigger the function on the leading edge instead of trail.
@Yuvalke Yuvalke requested a review from a team May 9, 2021 14:38
@Yuvalke Yuvalke self-assigned this May 9, 2021
RoyBregman
RoyBregman previously approved these changes May 9, 2021
let timeout;

return (...args) => {
const context = this;
if (immediate && !timeout) origFunc.apply(context, args);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not use inline ifs without curly brackets.
@yairans letw make sure we have lint rule to make sure this is not possible

@OrenMe
Copy link
Contributor

OrenMe commented May 9, 2021

@Yuvalke sid you mean to write "isn't taken into account"?

@Yuvalke Yuvalke merged commit ca8e2f2 into master May 12, 2021
@Yuvalke Yuvalke deleted the FEC-10811 branch May 12, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants