Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fixes #631 Scroll & constraint issues in BrowserViewController #894

Merged
merged 14 commits into from
Apr 11, 2019

Conversation

danishjafri88
Copy link
Contributor

@danishjafri88 danishjafri88 commented Feb 12, 2019

This is a regression PR for #631. Previous PR was reverted because of regression bug relating to constraints not properly set when bottom Toolbar is not visible.

Apart for the above regression fix, following are fixed:
->Youtube header problem
->Redundant Pan Gesture creation
->Mis-aligned constraints relations in BrowserViewController
->Refactored Show/Hide Tab Animation properly
-> Enable Zoom by ignoring viewport scale limit.
-> Removed a part of animation code(Hotfix for older logic) which became source of a jump issue during scroll.

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • My patch or PR title has a standard commit message that looks like Fix #123: This fixes the shattered coffee cup! (or No Bug: <message> if no relevant ticket)
  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()
  • New files have MPL-2.0 license header.

Test Plan:

Screenshots:

Reviewer Checklist:

  • PR is linked to an issue via Zenhub.
  • Issues are assigned to at least one epic.
  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • release-notes/(include|exclude)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable)

@danishjafri88 danishjafri88 changed the title Fixes #631 Fixes #631 Scroll & constraint issues in BrowserViewController Feb 12, 2019
@jhreis jhreis removed the QA/Yes label Mar 21, 2019
Copy link
Contributor

@jhreis jhreis left a comment

Choose a reason for hiding this comment

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

This feels much better to me, really solid improvements IMO, hopefully others will agree! Just one block of code/comments to remove.

@@ -251,20 +244,25 @@ private extension TabScrollingController {
}

func animateToolbarsWithOffsets(_ animated: Bool, duration: TimeInterval, headerOffset: CGFloat, footerOffset: CGFloat, alpha: CGFloat, completion: ((_ finished: Bool) -> Void)?) {
//NOTE: The issue below (& its fix) is irrelevant now since the the scroll logic is updated, infact the logic further
Copy link
Contributor

Choose a reason for hiding this comment

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

Just delete all of this, no reason to keep old code laying around.

@jhreis jhreis merged commit cefd069 into development Apr 11, 2019
@jhreis jhreis deleted the bugfix/fix.bug.631 branch April 11, 2019 14:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants